Latest Questions tagged Charts

Browse all latest questions tagged Charts

Published 13 Jun, 2022
Jquery - Add data to line chart using chart.js

I would like to add a new data in chart but the browser throws an error that says "Uncaught TypeError: undefined is not a function" when calling to my "Add" function. It seems that the chart object d...

Published 16 Apr, 2022
Javascript - Creating chart.js chart directly to PNG in Node js?

Chart.js is built on the HTML5 canvas element. To use it on node.js you need to mimic this element in node. There is a package that try to handle all the needed libraries for this purpose, you can fin...

Published 21 Aug, 2022
Java - Change colors of line chart Apache POI

I've generated a line chart using Apache POI. I need to change the default colors I got in the chart. Can I use RGB codes to define specific colors to each line? My code is as follows. Drawing dra...

Published 13 Jun, 2022
Reactjs - Gradient fill for react-highcharts' line chart

I have created a line chart using react-highcharts. And this is how it looks: . Now, I am trying to add color-fill gradient under the line and this is what I am doing: render() { let config = {...

Published 16 Jun, 2022
Reactjs - Uncaught Error: "category" is not a registered scale

I am trying to implement React char but getting this error, I search and follow decumentation but couldn't find the solution. import React from 'react'; import { Bar } from 'react-chartjs-2'; const...

Published 23 May, 2022
Reactjs - How to create a horizontal Bar Componenent with Chart.js

I want to create Horizontal Bar chart Component , I've Add type : "horizontalBar", but it still Vertical Bar chart. i;m using chartjs library. This is my chart Component import { Bar } from...

Published 11 Jul, 2022
Jquery - Kendo UI Chart - Render a Bar Series Bottom-Up when Value Axis is inverted (Top Down)

I have a Kendo UI Chart where I am displaying 3 series of data, on 3 different value axis. The "Ad Position" value axis is inverted, with 1 being highest possible value (As per image). As you can...

Published 15 Apr, 2022
Javascript - chart.js cuts data points to half

No idea why, but defining y.beginAtZero: true instead of y.min: 0 will solve the problem. Please take a look at your amended and runnable code and see how it works. new Chart('websitecalls_chartel',...

Published 25 Aug, 2022
Python - Choosing order of bars in Bokeh bar chart

As part of trying to learn to use Bokeh I am trying to make a simple bar chart. I am passing the labels in a certain order (days of the week) and Bokeh seems to be sorting them alphabetically. How c...

Published 16 Apr, 2022
Javascript - Chart.js Doughnut with rounded edges

I created a donut chart with Chart.js and I want it to have rounded edges at both ends. I want it to be like this: But I have it like this, with sharp edges: The best I found was this answer: Ho...

Published 16 Apr, 2022
Javascript - Remove "label" in chart.js

I'm using Chart.js v2.7.2 and want to remove the "label" field. Leaving it off returns "undefined" and the various options I've tried have done nothing. Anyone have new insight on this? Legend, title,...

Published 07 Jul, 2022
Jquery - jQuery Flot how to make an updating chart?

I am busy with the jQuery Flot plugin and I am stuck. How can I update my charts by adding new data? I hope someone can help me with this, thanks!

Published 25 Jul, 2022
Jquery - Export Google Chart to Excel

There is a requirement to export Google charts as such into Excel. Is there way to achieve the same through jquery? From the Google Chart documentation, I understand the chart can be converted to an i...

Published 18 Aug, 2022
Java - Nice Label Algorithm for Charts with minimum ticks

I need to calculate the Ticklabels and the Tickrange for charts manually. I know the "standard" algorithm for nice ticks (see

Published 16 Apr, 2022
Javascript - Chart.js number format

I went over the Chart.js documentation and did not find anything on number formatting ie) 1,000.02 from number format "#,###.00" I also did some basic tests and it seems charts do not accept non-num...