chart.js Questions
5
Solved
Originally I set the fill color for each point to be completely transparent. If I run my mouse over the graph, the points pop up. I want to hide all points so that the line graph is smooth.
Heelandtoe asked 28/1, 2016 at 22:55
3
I'm using Chart.js 4.2 in a laravel project with bootstrap 5.1
The chart works but there's an error on the console that drives me crazy:
Uncaught TypeError: Failed to resolve module specifier "...
Reluct asked 15/4, 2023 at 19:46
6
Solved
I am using chartjs
and datalabels
I have achieved everything I needed from chartjs and its plugin. Here is my final out
Here is my code
( function ( $ ) {
"use strict";
/////////////Pie cha...
19
Solved
I want to draw a horizontal bar chart with Chart.js but it keeps scaling the chart instead of using the height I assign the canvas form the script.
Is there any way to set the height of the graph f...
Cutie asked 31/1, 2017 at 8:47
13
Solved
sorry if I missed anything to fix my issue, I've read and tried many solutions without any of them being adapted to the problem.
I have several charts (from chart.js) on a single page, but I can't...
Emmetropia asked 20/2, 2017 at 9:7
4
Solved
Just wondering if there is any way to set the horizontal bar labels for y-axis using chart.js. Here is how I set up the chart:
<div class="box-body">
<canvas id="chart" style="position: r...
Cousins asked 2/8, 2017 at 4:23
9
Solved
How can I set the code that there will be no hover effects, hover options, (hover) links etc on chart?
I'm using chart.js. Below is my code, where I set pie chart.
Html..
<div id="canvas-hold...
Graycegrayheaded asked 31/1, 2017 at 7:36
5
Solved
I am using Chart.js 2.8.0 trying to get rid of the X/Y axis border.
With gridLines { showBorder: false }} I am still seeing the X axis border.
I also have the color set to 0 alpha, all the other li...
Aliaalias asked 11/4, 2019 at 3:38
2
Solved
I am using Chart.js v2.5.0 to create a chart like this:
Note that sometimes the bar will go over the red dotted line. Sometimes the red dotted line will be at a different position (its normally ...
Bhatt asked 24/3, 2017 at 16:58
4
Solved
How to reformat tooltip in Chart.js? The chart has x-axis as time, y-axis as sales amount and tooltip to show data value for both x and y. So far tooltip can work by default but I want to change th...
Ryun asked 23/5, 2016 at 14:26
8
Solved
I'm using Chart.js to draw a simple bar plot and I need to format its Y axis like
123456.05 to 123 456,05 $
I don't understand how to use scaleLabel : "<%=value%>"
I saw someone pointin...
Mcelroy asked 4/12, 2013 at 9:44
3
I am using Chart JS with data label plugin and I want to show data labels next to the bar and pie chart but noticed that some of the data labels are getting cut or going out of canvas. Is their any...
Visakhapatnam asked 7/5, 2018 at 12:51
11
Solved
Does Chart.js (documentation) have option for datasets to set name (title) of chart (e.g. Temperature in my City), name of x axis (e.g. Days) and name of y axis (e.g. Temperature). Or I should solv...
8
Solved
Is there a way to set a different color to a datapoint in a Line Chart if its above a certain value?
I found this example for dxChart - https://stackoverflow.com/a/24928967/949195 - and now lookin...
Sciuroid asked 26/1, 2015 at 22:4
4
Solved
I want to have the y label value, when I click on the bar.
Like the above example, when I click on feb blue bar I want to have label value, which is 40
I looked for examples on stackOverFlow ...
Magritte asked 24/5, 2018 at 18:33
10
Solved
I managed to remove all horizontale lines/rules in my chart using this:
scales: {
xAxes: [{
gridLines: {
display: false
}
}]
}
But I also want to get rid of the rule/bar that represents th...
Shoa asked 10/11, 2016 at 8:23
10
Solved
I'm using Charts.js to show a graph on my site. Currently, the label shows as a long string of numbers (i.e 123456).
I want it to show as currency with thousands separator: (i.e $123,456)
I'm usin...
Schoening asked 15/2, 2015 at 5:46
2
Solved
I'm building out a chart using chart.js, it is a stacked bar chart with a scatter type. My problem is that the scale on the x-axis of the bar chart does not properly represent the x-axis scale of t...
Debutante asked 21/7, 2017 at 18:49
14
Solved
I've got a question regard Chart.js.
I've drawn multiple piecharts using the documentation provided. I was wondering if on click of a certain slice of one of the charts, I can make an ajax call d...
Figment asked 8/10, 2014 at 12:46
4
Solved
I have a simple project that displays an Ionic segment in which there is a Chart.js barchart. I have no problem with displaying the chart itself, but trying to put the chart HTML inside Ionic segme...
3
Solved
I'm trying to show four horizontal bars with legends on top of it in chart.js; but the legendtext is showing undefined for each cases. How to define or declare the texts for legends in chart.js ?
...
Aboard asked 4/5, 2018 at 8:29
7
html:
<canvas *ngIf="actionData" baseChart width=800 height=300
[datasets]="lineActionData"
[labels]="lineActionLabels"
[options]="lineChartOptions"
[colors]="lineChartColors"
[legend]="li...
Trusting asked 21/2, 2018 at 12:15
4
Solved
I am having this error with chartJS and primeNG:
ERROR TypeError: chart_js__WEBPACK_IMPORTED_MODULE_2__ is not a constructor
at UIChart.initChart (primeng-chart.js:48)
at UIChart.ngAfterViewInit ...
3
Solved
I have user ngEcharts (angularjs plugin of Echarts). When i implement bar chart yaxis labels are cutting off.
can anyone point me on the direction to how to prevent this or increase yAxis label ar...
4
Is it possible to create a donut chart with multiple rings using ChartJS as shown below?
Adaurd asked 25/3, 2015 at 11:15
© 2022 - 2024 — McMap. All rights reserved.