score:2
Accepted answer
two possible solutions:
- it seems your libraries are not properly loading. try to pull them through cdn, and see if that works. i've tried to run this fiddle:
http://jsfiddle.net/25oqkhz7/11/
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/chart.js/2.7.2/chart.min.js"></script>
but i cannot get the data because of the cors.
- this can also be the issue for you, if your local domain is not allowed to access data from that url in your ajax request, there's not much you could do with that url. you could download the data manually and reference it from some local file, but until your development domain is whitelisted, you cannot perform such get request.
what does your console.log() has to say? perhaps with more input, we could be more precise.
Source: stackoverflow.com
Related Query
- chart.js not getting linked with online database and php
- Chart.js - Getting data from database using mysql and php
- Trying to load a chart with chart.js, through ajax and php
- Grouped Bar Chart from mySQL database using ChartJS and PHP
- Dynamic line chart with chart.js and PHP
- Doughnut Chart not displaying data with Chart Js and Backbone js
- Chart not rendering with pug/jade and nodejs
- Dynamically create chart with Chart.js and PHP
- Chart.js not rendering chart with data from mySQL database
- chart js download to png with canvas.toDataURL() not working in IE and firefox
- Chart.js bar chart with time on X axis and category on Y axis is not rendered
- Trying to export chart with Chartjs and React but getting erorr
- Chart js: I'm getting the labels crossed on my pieChart and doughnut. Not able to get the chart itself
- Create Line Chart and populate with database information
- Getting TypeError: (intermediate value).Bar is not a function with react and chart.js
- I am using chart js to draw a chart. I did everything right but i don't know why the x axis and y axis label is not comming in chart. code below
- Chart.js with line chart and bar chart - bar chart not rendered although the max value of it is shown
- ReferenceError: Chart is not defined with primeNg and angular 4
- Getting a Chart is not defined ReferenceError with in React + React-chartjs
- Chartjs random colors for each part of pie chart with data dynamically from database
- Chart.js: bar chart first bar and last bar not displaying in full
- Chartjs 2 - Stacked bar and unstacked line on same chart with same y axis
- Chart.js Mixed Bar and Line chart with different scales
- Problem for display a chart with Chart.js and Angular
- Show X axis on top and bottom in line chart rendered with Chart.js 2.4.0
- Chart.js: width and height of a pie chart not respected
- Series Details Not Showing in Angular Chart with Charts.js
- Can we draw a Line Chart with both solid and dotted line in it?
- Chartjs not rendering chart and no error thrown
- Increase padding between legend and chart with react-chartjs-2
More Query from same tag
- Using data from model in Chart.js MVC c#
- How to change chartjs ticks orientation to 'slope right'?
- How to add a second set of labels to a Chart.js doughnut chart?
- Chart.js Label color positioning in tooltip/legend
- ChartJS: Is it possible to omit last grid line to save space
- Chart.js: Chart not resizing in iframe
- How to offset axes in a scatter plot?
- Chart.js chart appears and disappears on form submit
- Chartjs charts drawing with the same colour after update
- How to increase space between chart and legend? (googlecharts)
- Chart.js - Black bar colors in mobile devices
- How to create a linechart with Chart.JS (not filled)
- Angular Overlapping bars using chart.js
- Implement Chart.js Plugin Meteor Project
- chart.js Multiple barchart in time scale won't display all
- Style X and Y Axis (tick mark) with Chart.js?
- Loop through each tooltips to add different TimeStamps
- Chartjs Polar Area Chart: Category missing
- Chart.js (line chart) tooltip duration/delay
- How do I stop chart js from auto rescaling the y axis upon calling chart.update()?
- Chart.js hiding lable
- Chart.js doughnut canvas padding
- Implement ng2-charts in an Angular-Seed
- JsChart multiple labels in legend
- chartjs push array to label not working
- How to create pdf file in node js
- re-creating an animated graph in javascript with charts.js
- Disable display of x and y values on ChartJS
- Chart.js using the value of certain data in external json file
- How to fill a graph by a color till a vertical line using chart.js