I'm making a homepage using, Bootstrap, JQuery and Chart.js (v2). I had my implementation working using v1, but recently just got into Bower and downloaded v2 using that.  I'm making a grid of 4 columns each containing a pie chart, however th...
I am using below code to populate slice values in a pie chart using JS and it's correctly working but I am observing another problem as these values are getting populated only once and when I reload the charts it's getting disappeared. Now le...
I'm using Chart.js version 2.7.1 and I am dynamically updating my Line chart when temperature data comes in.   The problem is that the lines never pass the halfway mark of the x axis in time. Every time I update, the chart auto scales the right s...
I have a stacked bar chart and two line charts. The second line chart is beeing stacked on top of the first line chart but I don't want this behaviour.  What I've tried is to explicitly set the stack mode on false ,but this option is not beei...
Here is a Grouped Horizontal Bar Chart:  http://jsfiddle.net/jmpxgufu/185/  var ctx = document.getElementById("myChart").getContext("2d");          var chart = {         options: {         scales: {                  yAxes: [{ barPerce...
According to the "Tick Configuration" of Chart.js version 2.3 it is only possible to set a padding for the ticks on the Y-axis ("horizontal scale"):     padding | Number |10 | Padding between the tick label and the axis. Note: Only ap...
In the event of onHover of legends, I would like to change the style of the mouse cursor to pointer (yes, this can be done as the code shown below). But in the event of mouse out of legends, I would like to change the mouse cursor back to default. Is...
Working on a custom chart that can determine the thickness of a bar in a bar or horizontal bar chart based on a value provided by the data, not a pre-set width as possible with barThickness or barPercentage / categoryPercentage.  Goal: I can create a...
Chart.js 2+ does not return percentages for legend items in pie charts anymore.  I am storing the legend in the separate item in my html named #legend. Then I set it's innerHTML to myPieChart.generateLegend(). It returns both the color and name b...
I'm trying to add custom event to legend in doughnut chart using chart.js but I don't know how.  I'm using this example  var original = Chart.defaults.global.legend.onClick; Chart.defaults.global.legend.onClick = function(e, legendItem) {...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.