Questions tagged [chartnew.js]

14 questions
1
vote
1 answer

Get position in array element

In JavaScript, I am unable to figure out how to use the data object in the function below to get the position of the clicked-on data point (e.g. third data point in the series). Using chartsNew.js, a popular fork of charts.js, this code shows the…
crashwap
  • 2,846
  • 3
  • 28
  • 62
1
vote
1 answer

issue with customisation of Chart new.js for bar chart

Hi I am working on Chartnew.js for plotting bar chart.I have defined the x and y axis labels and have plotted the bars in it. 1)How can i fixed the width of each bar in this chart(width should be equal say 20 px) 2)What is the maximum number of bars…
0
votes
0 answers

One of the bar in horizontal barchart of chart.js (ChartNew.js) does not grow horizontally though it has more than 60% value

No width for the bar in horizontal bar chart: In the above chart the first bar is not displaying the values. Though the value of it is more than 60% the width of the bar never grows. Thanks in advance. Below is the code i am…
0
votes
0 answers

ChartNew.JS: issue with external CSS file

Has anybody worked successfully with chartnew.js (https://github.com/FVANCOP/ChartNew.js/) and an external CSS file? Essentially, I can't get it to run. A simple chart can successfully produced like so:
Happysmithers
  • 733
  • 2
  • 8
  • 13
0
votes
1 answer

How to create variable in javascript from two other variables - create chart using chartnew.js

I want to display a stacked chart using chartnew.js in aspx page . I got all relevant data from webmethods. The data for chart is in the format var classdata = { labels: ["English", "French", "Science", "Maths", "SS",…
shaiju vj
  • 1
  • 1
  • 1
0
votes
2 answers

How to update the Pie chart in ChartNew.js?

Hi I am using chartnewjs. I want to update the pie chart with animation. I am using line chart with live update. The updateChart(ctx,data,config,true,true) method is working fine. I have tried the same for pie chart but the chart is not getting…
0
votes
1 answer

How to decrease the interval for Horizontal Stacked bar in ChartNew.js?

I am using ChartNew.js for Horizontal Stacked bar but it appears that it is auto calculating these values. I read the document but did not see any help or options where I could change or fix the issue. Because I am not able to change the interval,…
Joy1979
  • 599
  • 5
  • 12
  • 23
0
votes
1 answer

chartnew.js - remove lines from pie chart on 100%

is there a way to remove the unnecessary line from the pie in this case? im using chartnew.js
user2587454
  • 903
  • 1
  • 19
  • 44
0
votes
1 answer

Chart.js bar chart barWidth is Inconsistent

I am using bar chart in chartjs. In that bar chart bar width is inconsistent. Means when bar count(labels) is 1 means the single bar is showing like bigger width.It almost occupying entire width of canvas. When bar count(labels) is 3 or more if i…
Suresh
  • 105
  • 1
  • 2
  • 6
0
votes
1 answer

how to put yAxisLabel in chartjs

can any one tell me how to put the y-axis label in chartjs i have already tried the ChartNew.js and it is increasing the height and width of the canvas. this how graph looks like with normal chart.js when i use chartnew.js same graph look like…
rashfmnb
  • 9,959
  • 4
  • 33
  • 44
0
votes
0 answers

ChartJS 'random' width

im using chartJS to display a bunch of measurements. It seems like the Chart itself is only using a fraction of the canvas. I've found out that it depends on how much values I try to display. On different amounts of datapoints it extends in…
M4tho
  • 116
  • 2
  • 13
0
votes
2 answers

ChartNew does not show item legend

I'm facing an issue that I couldn't find anything here that helps me. I'm using ChartNew.js which is possible to set legend of datas in Chart for end user. Even set this option in my JavaScript, this option seems nos working for me. Although my…
bcesars
  • 1,016
  • 1
  • 17
  • 36
0
votes
0 answers

Add data dynamically in chartNew.js

Data Coming from hidden value in PHP page. I have set value in hidden field. Fetching those value in chart.html page. This html page contain charNew.js. I am fetching those value as var fstval= document.getElementById('fstval').value; var sndval=…
-1
votes
1 answer

How to export report as PDF/CSV in ChartNew.js

I am using ChartNew.js for Horizontal Stacked bar report. I am not sure how to export chart report to PDF and CSV format with ChartNew.js? I tried but could not find any solution. Any help with sample code would highly appreciated.
Joy1979
  • 599
  • 5
  • 12
  • 23