Multiple Point Selection chartJS - javascript

I'm trying to draw graphs with multiple datasets in chartJS. Some datasets are grouped together and users should be able to select those grouped datasets with a single click on the group.
Example:
Before select
After select
Is this possible in chartJS?
Thanks

Related

Javascript D3.js Nested Axis Labels for Radar Chart

I would like to add nested axis Labels to my radar chart. All online resources just show a singular axis.
An example of the image I am trying to reproduce is shown in the below figure.
The axis is Management.sr_lvl_1, Management.sr_lvl_2, Management.sr_lvl_3... However, I want the word management to appear only once in the label which spans across all sr_lvl

One legend, multiple charts Chart JS

I have two pie charts with different data but same labels and background colors. How can I create a standalone legend (a legend without a chart) using ChartJS so that the legend corresponds to both the pie charts at the same time?
I tried creating a pie chart with the data array set to an array of 0s. However, that causes an empty pie chart to be generated, which takes up a lot of space; so that's a no go.
Any help would be deeply appreciated.

Way to toggle x-axis label-grouping in Chart.js?

I'm trying to make a vertical bar chart (aka "column graph") using Chart.js with multiple datasets that does not group by the x-axis labels. I would like each column to have its own label and I would like datasets to be grouped only by color. Chart.js automatically takes the first data entry of each dataset and plots it on the first x-axis label, and so on. Rather than that, I want my chart to look like this:
If this is simply a terrible way of presenting data, I'm open to other suggestions... But I like the alphabetical sorting of the show titles and the color-coded grouping of networks.

HighCharts moving xAxis label (dates) to between two series

By default, the date labels are at the very bottom of the chart. I have several series charts but want the date labels to be beneath the first one. I've looked all over the APIs and searched all over but don't see an option for this. Any ideas?

Summing graph data in highcharts

I have a highcharts line graph that shows sales data. Is there a way to sum up the data for a selected period of time? For example, if I plot daily sales reports, to be able to highlight and sum up one week of that?
What you're describing is not a native feature of highcharts. You can get a series from the chart object and perform the calculations you want on it individually, or have the tooltips or legends display the sum over the whole series. But it's not natively possible to highlight only part of a series and they provide no convenience methods for what you're describing.
If you're satisfied with summing over a whole series, I would use the legendFormatter hook and show the series sum as part of the legend. If it needs to be a subset of the series you'll need to write it yourself, possibly using the hover event for series to start the event.

Categories

Resources