How can I fill a shape in Radar Chart?

I am struggling to find a way to fill a shape only in a radar chart.
An example of what I would like to have is in the image.

  • I tried to start from a simple radar chart and then filling the shape –> I can’t find the option;

  • I tried to start from a filled radar chart, but I don’t know how to obtain the result in the image;

Thank you.

Filled Radar

building a shopping basket/ chart

I have no idea where to start
So was hopping some people might point me in a starting point
What do you lot do
Build them your selfs or
Use … | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1852746&goto=newpost

LibreOffice Calc — line chart double zero unit at XY-axis crosspoint

The line chart in LO Calc has two zeroes, one for Y-axis and one for X-axis (see attached pic). This is wrong in my opinion and looks bad. I’ve been trying to figure out how to get rid of one of the zeroes, but alas to no avail.
Any ideas? Thanks!

Simple Pie Chart not working in custom module. Do you see any errors in my code?

I am running Drupal 9 in Lando. I have enabled the Charts and Highcharts modules and installed the Highcharts JS library with composer. I wrote a simple module to display a Pie Chart but the chart won’t display. My code is below. Do you see any glaring errors or ways I can debug this? I ported this from an example that runs fine in D7 in DevDesktop.
The info yaml file.

name: My Test Chart
description: This is an example use of the Charts module.
package: Custom
type: module
core_version_requirement: ^9
dependencies:
  - chart

The router yaml file.

example_chart:
  path: 'mychart-example'
  defaults:
    _title: 'My Example Chart'
    _controller: 'DrupalmychartControllerMyChartController::example_page'
  requirements:
    _permission: 'access content'

The library yaml file.

highcharts:
  js:
    libraries/highcharts/highcharts.js: {  }
  dependencies:
    - core/jquery

The Controller.

namespace DrupalmychartController;

use DrupalCoreControllerControllerBase;

class MyChartController extends ControllerBase {
  /**
   * @return array
   */
  function example_page() {
    $chart = array(
      '#attached' => array(
        'library' => array('mychart/highcharts'),
      ),
      '#type' => 'chart',
      '#chart_type' => 'pie',
      '#chart_library' => 'highcharts',
      '#title' => t('Simple Pie Chart'),
    );
    $chart('pie_data') = array(
      '#type' => 'chart_data',
      '#title' => t('Gender'),
      '#data' => array(array('Male', 10), array('Female', 20)),
    );
    return  $chart;
  }
}

theming – How can I render the chart inside the container ?

I am running Drupal 9 on Lando. I installed the Charts and the Highcharts modules. I made a custom module with a template file containing the following code.

{# stats_degrees/templates/mychart-template.html.twig #}
{{ attach_library('stats_degrees/highcharts') }}
<h1>My Chart Template</h1>

<div id='container' style='width:100%;height:100%;'></div>

This is the render array output by the controller class.

 // build render array for chart
    $chart = array(
      '#attached' => array(
        'library' => array('stats_degrees/highcharts'),
      ),
      '#theme' => 'mychart_template',
      '#type' => 'chart',
      '#chart_type' => 'line',
      '#chart_library' => 'highcharts'
      '#title' => t($title),
      '#legend_position' => 'right',
    );

I then create the rest of the chart array and return it. The template is rendered with no chart.

How can I render the chart inside the container <div>?

theming – How to add a chart to a Twig template pragmatically?

I am running Drupal 9 on Lando and have enabled the Charts and Highcharts modules. I made a custom module containing this Twig template.

{# stats_degrees/templates/mychart-template.html.twig #}
{{ attach_library('stats_degrees/highcharts') }}
<h1>My Chart Template</h1>

<div id='container' style='width:100%;height:100%;'></div>

This is my render array inside my Controller.

 // build render array for chart
    $chart = array(
      '#attached' => array(
        'library' => array('stats_degrees/highcharts'),
      ),
      '#theme' => 'mychart_template',
      '#type' => 'chart',
      '#chart_type' => 'line',
      '#chart_library' => 'highcharts'
      '#title' => t($title),
      '#legend_position' => 'right',
    );

I then go on to create the rest of the chart array and return it. The template is rendered with no chart. How can I specify that the chart should be rendered inside of the container div?

How to create a grouped bar chart using a csv file (python 3)

The csv file contains columns for the following data.
Country, Median_Wealth, Mean_Wealth, Population
The objective is to create a bar chart in such a way that for each country there are three bars:
(Median_Wealth, Mean_Wealth, Population)
Without using Pandas software, only Matplotlib csv file screenshot or csv file download

graphs – Error type chart with simultaneous errors

1. What is an error type chart?

Our monitoring system measures the parameters of telecommunications services at regular intervals, and based on the measured parameter values, automatically decides if there were service errors. For every monitored service, there is a chart on our dashboard, which displays in percents the ratio of error-detecting measurements to all measurements. Different service error types are displayed with different colors.

2. EASY CASE: Mutually exclusive error types

In most cases, one measurement can detect at most one service error type, so I could use stacked bar charts. This way the user can examine not just the percentage of different error types, but also the total percentage of errors, which is shown by the total height of the stack. Example chart with 6 possible error types:

enter image description here

The users like this solution.

3. MY PROBLEM: Simultaneous error types

In rare cases one measurement can detect more than one service error type, even all of them.

a] I cannot use stacked bar charts because the height of the stack would be misleading. For example, if there are 100 measurements, and 5 of them detects errors, but all of them detect the same 3 error types, then the top of the stack would be at 15%, while the total error ratio is 5%.

b] I also cannot use use unstacked bar charts, because at the smallest supported display resolution there are only 10-15 pixels for every time interval, so there would be only 1-2 pixels per bar if I put them next to each other.

c] Both problems could be solved by unstacked line charts. Here is an example with 7 error types:

enter image description here

Unfortunately the users don’t like it, because “it’s very hard to see the total error percentage”. Although there is another chart which displays the total error percentage, they would still prefer being able to see its value on the error type chart. I could add yet another, possibly thicker chart line, which shows the total error ratio but in some cases there are 16 different error types and I’m not sure that adding a 17th line with a special meaning wouldn’t make the chart too complex.

4. MY QUESTION: How could I display on the same chart not just the different error type ratios, but also the total error ratio in a meaningful way?

dataset – how to create a new bar chart using the data from the existing barcharts

I have the following code to generate two separate bar charts. I like to create a new bar chart by extracting the data from the following barcharts.

bc1 = BarChart[
   <|"Cambodia-Dec" -> <|"National" -> 75.4, "Urban" -> 61.9, 
      "Rural" -> 77.7|>,
    "Indonesia-May" -> <|"National" -> 79.8, "Urban" -> 78.7, 
      "Rural" -> 81.8|>,
    "Lao PDR-Jul" -> <|"National" -> 27.0, "Urban" -> 28.8, 
      "Rural" -> 26.0|>,
    "Mongolia-Dec" -> <|"National" -> 17.5, "Urban" -> 19.3, 
      "Rural" -> 14.1|>, 
    "Myanmar-Oct" -> <|"National" -> 52.8, "Urban" -> 54.9, 
      "Rural" -> 51.7|>,
    "Philippines-Dec" -> <|"National" -> 75.8, "Urban" -> 78.4, 
      "Rural" -> 72.9|>, 
    "Solomon Islands-Jun" -> <|"National" -> 32.3, "Urban" -> 33.1, 
      "Rural" -> 32.2|>|>,
   ChartLabels -> {{"CambodianDec", "IndonesianMay", "Lao PDRnJul",
       "MongolianDec", "MyanmarnOct", "PhilippinesnDec", 
      "Solomon Isl.nJun"}, None},
   ChartLegends -> Placed[{"National", "Urban", "Rural"}, Below],
   PlotTheme -> "Business",
   PlotLabel -> "Factor 1",
   Frame -> {{True, True}, {True, True}},
   FrameLabel -> {None, "% of households"},
   BarSpacing -> None
   ];

bc2 = BarChart[
   <|"Cambodia-Dec" -> <|"National" -> 555.4, "Urban" -> 40, 
      "Rural" -> 80|>,
    "Indonesia-May" -> <|"National" -> 25.8, "Urban" -> 80, 
      "Rural" -> 81.8|>,
    "Lao PDR-Jul" -> <|"National" -> 27.0, "Urban" -> 45, 
      "Rural" -> 26.0|>,
    "Mongolia-Dec" -> <|"National" -> 17.5, "Urban" -> 30, 
      "Rural" -> 14.1|>,
    "Myanmar-Oct" -> <|"National" -> 52.8, "Urban" -> 54.9, 
      "Rural" -> 51.7|>,
    "Philippines-Dec" -> <|"National" -> 40, "Urban" -> 25, 
      "Rural" -> 72.9|>,
    "Solomon Islands-Jun" -> <|"National" -> 32.3, "Urban" -> 33.1, 
      "Rural" -> 32.2|>|>,
   ChartLabels -> {{"CambodianDec", "IndonesianMay", "Lao PDRnJul",
       "MongolianDec", "MyanmarnOct", "PhilippinesnDec", 
      "Solomon Isl.nJun"}, None},
   ChartLegends -> Placed[{"National", "Urban", "Rural"}, Below],
   PlotTheme -> "Business",
   PlotLabel -> "Factor 2",
   Frame -> {{True, True}, {True, True}},
   FrameLabel -> {None, "% of households"},
   BarSpacing -> None
   ];

If I want to create a new bar chart only for Cambodia, for example, I will have to extract the Cambodia data from each bar chart manually, which I do not want to do because I have many bar charts to do this operation. Rather I like to do the data extraction using Mathematica and create the new bar chart desired.

what is the best chart to represent how a variable moves across different categories along time?

assume the variable X can be in 4 different categories A,B,C,D in different days. how can this data be represented visually?

day1 A
day2 B
day3 C
day4 D
...