You must be logged in to post your query.
Home › Forums › Chart Support › Need Average between primary and secondary axis
Tagged: average, Bar Chart, compare
Dear
I am using CanvasJS and I am very much happy about this. Now I need help to calculate average between primary and secondary y-axis on Bar Chart. Suppose I am comparing values between two marks. Two teachers given their marks on a single question. I want to compare both and generate the average and show it either level or index level. I can access only one value using indexLabelFormatter: function (e){ e.dataPoint.y }
but cant access both primary and secondary values at a time. I need help please. A sample shown in bellow | |_____________ Q2 |____________|_3___________ (avg 4) |_________________________|5 |_________________________ Q1 |_________________________| 5 (avg 4.5)|___________________|4 |_____________________________________
@mujahid_102,
Thank you for your interest in CanvasJS.
Here is an example of showing the average on axis labels. For this you need to find the average of dataPoints and set it to axis label using chart options before rendering the chart.
— Suyash Singh Team CanvasJS
Thanks a lot brother
You must be logged in to reply to this topic. Login/Register