I am building a series of doughnut charts and I would like to remove the second item in the legend, so when I generate the legend with the generateLegend() method I just want to get the first value.  In the documentation there is an option that reads...
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...
I've created a Chart.js line plot with multiple lines (1 pixel thickness by default), and I want the user to be able to mouse over any particular line plot (not just the points) and have the plot change its line thickness (i.e. 3 pixels). Is this...
I am attempting to create a line chart where the color of the line (and the points) is dependant upon the value being plotted. For example if the value is above the following thresholds [0, 115, 125] then the color would be either ['green', &...
i am using this chart example where i updated query in data.php with  working   "SELECT student_id,student_name,marks FROM tbl_marks WHERE student_id IN(1, 2, 3)"   not working   "SELECT student_id,student_name,marks FROM tbl_marks WHERE...
I am getting time data which I want to display in stacked bar chart. I have been able to plot dates on x-axes in chart js with the time format as per the documentation. I want to display time in HH:mm format on y axis. Moreover, the data I am getting...
I'm sitting here on a problem and I can't find a solution for it. I'm trying to create a stacked bar graph with chartJS. Nothing complicated to that point.   My problem: Every bar on my chart should have unique values / labels. Those shou...
I am trying to create a scatter plot where XAxes and YAxes is the same scale and size.  The plot will become a square with identical Axes. Therefore if the data be {x:0, y:0}, {x:100, y:100} it draws a diagonal (45 degrees) line. I am plotting  A vs....
I've been trying to add a click event to each column in a bar chart using Chart.js.  What I'm trying to figure out is how to make a click event on each column execute the code I want.  The goal for this is when a user clicks on a particular b...
Following this link to extend Scatter type with draw() function to print "No Data Found" in the center but with the Y axis scale.  Here's the code:  Chart.defaults.derivedScatter = Chart.defaults.scatter;  var ctx = canvas.getContext("...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.