Issue I’m trying to create a chart using the the Chart.JS library, but I get the following error: Uncaught ReferenceError: options is not defined I’ve followed the documentation, but perhaps I’m missing something. See here for my codepen example. <html>
Continue readingTag: chart.js
[SOLVED] Set height of chart in Chart.js
Issue 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
Continue reading[SOLVED] How to Chart.Js, change the color by pressing the button (or any element)?
Issue how can I change the line colors in the light mode of the chartjs I use when I switch to dark mode? Can you help me with this? Here are the colors I use now: This is how I
Continue reading[SOLVED] Is it possible to make a Radar Chart have a multi-color fill using Chart.js?
Issue The radar chart seems to only have 1 fill color for a dataset. I would like to have the fill color change across axis. Something along these lines: Is this possible in Chart.js or should I choose another library?
Continue reading[SOLVED] Is it possible to generate multiple chart in Laravel using chartjs ? If possible please give the solution
Issue My blade file code is: @foreach ($radio_data as $data) <div style="text-align: center" class="row"> <div class="col-md-4 text-center" > <canvas id="myChart"></canvas> </div> </div> @php array_push($dataPoints, array("label"=> " $data->answer ", "y"=> $data->num )); @endphp <p>{{ $data->answer }}: {{ $data->num }}</p> @endforeach I
Continue reading[SOLVED] ChartJSNodeCanvas plugin chartjs-plugin-annotation creates error: HTMLCanvasElement is not defined
Issue I want to create my chart as png on the server. The X axe is based on time, therefore I need the date adapter. const chartJSNodeCanvas = new ChartJSNodeCanvas({ width: 512, height: 400, backgroundColour: "white", plugins: { modern: [‘chartjs-plugin-annotation’],
Continue reading[SOLVED] Erro Nova ChartJs SQL Generator when using PostgreSQL
Issue Describe the bug I’m trying to generate a chart, however when I pass the parameter "filter" to SQL Builder, more specifically the file "TotalRecordsController" assembles the query as if I were using MySQL, instead of mounting it for PostgreSQL.
Continue reading[SOLVED] Combine multiple columns values to one label in chart.js
Issue My table(tb_ticket) which like this : technician_1 Technician_2 Ema Ema Tom Ema Lisa Tom Ana Lisa Tom Tom My question is how to make it like this : Ema=3, Tom=4, Ana=1, Lisa=2 My query <script> var ctx = document.getElementById("myChart").getContext(‘2d’);
Continue reading[SOLVED] Removing vertical gridlines and preventing height resizing
Issue I have two questions about using Chart.js. Is there any way to remove the vertical gridlines. I don’t think they serve any purpose in my bar charts, and it looks a little cleaner without them. When the charts resize,
Continue reading[SOLVED] ChartJS : It's not showing in html on Django
Issue I will plot horizontal bar chart in html but it’s not showing. I send 2 variable from views.py are {{top5StockCode}} and {{top5TotalSales}}. The values of {{top5StockCode}} that views.py sent is [‘23166’, ‘21108’, ‘85123A’, ‘48185’, ‘22470’] and {{top5TotalSales}} [2671740, 227322,
Continue reading