Skip to content
Advertisement

Tag: charts

Chart.js 2.7.2- Multiline get point value onClick

I would like to get value foreach point value. Don’t work because when I click on point I obtain only of the first line value. GetElementsAtEvent give me an array of 3 element (element active) but how I can get the clicked value? This the Complete code. Thanks Answer To get the exact element, use ctx.getElementAtEvent.

Chart.js OnClick event with a mixed chart, which chart did I click?

EDIT: Modified to add options, and a suggested (from the answer) chartClickEvent, here is a jsfiddle: http://jsfiddle.net/jmpxgufu/174/ Imagine if you will a Chart.js mixed chart with the following config: As my chartClickEvent says, my array is length 2, because I have two charts. That’s great and all, but I have no idea how to figure out whether to use array[0]

Recharts – Normalised Stacked Bar Charts

I’m pretty new to both React and Recharts and I’m sitting with a bit of a predicament. I did quite a bit of reading up but I can’t seem to find what I’m looking for, so I am hoping I can get some help here. I have a dataset that includes a list of processes with completed, failed and in

Make google chart responsive

Im using google charts in a project but im having a hard time to make them responsive. Iǘe seen other examples on responsive charts but I cant seem to get it to work in my case. All my charts gets rendered and after that their sizes do not change. If someone can make this chart responsive id appreciate it. Thank

Advertisement