score:1
tthe syntax is different if you are using chart.js v1 or v2.
you imported the v1.02 library using <script src="http://www.chartjs.org/assets/chart.js"></script>
.
but you actually used the v2 syntax :
var mychart = new chart(ctx, {
type: 'line',
data: data_live,
options: live_options
});
you can fix this by importing the right library (which is the v2) :
<!-- the following is the latest version of chart.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/chart.js/2.3.0/chart.min.js"></script>
Source: stackoverflow.com
Related Query
- hereChartJS Line Chart with Time Axis
- Chart with Time axis only displaying first grid line and tick label (unitStepSize)
- How to use chart.js to plot line chart with x axis as time stamp in seconds
- Chartjs 2 - Stacked bar and unstacked line on same chart with same y axis
- Show X axis on top and bottom in line chart rendered with Chart.js 2.4.0
- Chart.js Dynamically Updating Chart with X Axis Time
- Obtain max value of y axis of line chart rendered with Chart.js
- Line chart with large number of labels on X axis
- Line chart doesn't work with type time chart.js
- react-chartjs-2 line chart with time on X-axes with multiple data sets plotted wrong
- chart js - bar chart with time scale on Y axis in Hours and Minutes
- How do you make a progressive line chart with time as the X axis?
- Line Chart using Chart js with time data
- Time chart labels with some X axis labels using Chart js v3
- Chart.js bar chart with time on X axis and category on Y axis is not rendered
- ChartJs line chart time cartesian axis number of ticks and wierd offset
- Plotting multiple JSON subobjects in Chart.js Line chart ( with Time as x-axis)
- Multiple axis line chart with Chart.js and JSON data from Google Sheet
- Chart for Real time data with duplicate x axis
- How can I create a horizontal scrolling Chart.js line chart with a locked y axis?
- ChartJS New Lines '\n' in X axis Labels or Displaying More Information Around Chart or Tooltip with ChartJS V2
- How to prevent first/last bars from being cut off in a chart with time scale
- line chart with {x, y} point data displays only 2 values
- Display line chart with connected dots using chartJS
- Chart.js - line chart with two yAxis: "TypeError: yScale is undefined"
- How to display Line Chart dataset point labels with Chart.js?
- show label in tooltip but not in x axis for chartjs line chart
- Chart.js Mixed Bar and Line chart with different scales
- chart.js Line chart with different background colors for each section
- How do I draw a vertical line on a horizontal bar chart with ChartJS?
More Query from same tag
- Chart.JS canvas gets larger every time drawn
- ChartJS does not display when using local Chart.js file
- How to show the chartjs bar chart data values labels as text?
- Bar chart with two sets of labels in Quickchart
- Chartjs Custom Legend for Doughnut Chart Having Labelled Lines Sticking Out of Each Section
- update my chartjs form without refreshing page
- How to show dynamic dates with month name of current month and previous month in momentjs?
- How to export Chart.js chart using toBase64Image, but with no transparency?
- Styling Bars and Lines with Chart.js
- Chart.js making this chart more readable / scrollable
- NuxtJS ChartJS Gradient Color doesnt apply
- How to get labels on ChartJS Pie chart segments
- Implement Chart.js Plugin Meteor Project
- How Can I Get An Instance of a ChartJS Bar Chart Using Angular
- Mapping data (from getJSON response) in Chart.js
- Chart: Two bipolar bars below each other
- Adding reading off lines in ChartJS
- how to use alpha vantage api in Instead list in chartjs?
- Draw chart.js as svg
- Custom text in tooltip and legend: ChartJs
- How to manipulate data in react-chartjs-2
- ChartJS tooltip values aren't matching the data after updating multiple charts
- Drilldown on barchart using CHARTJS Devexpress
- Chart.js - Right use of object array
- Chart.js glitches and reverts to previous dataset on hover
- How to use percentage scale with Chart.js
- Show Labels on Pie pieces instead of Data values Chart.js
- How to label x-Axis in Chart.js by days?
- Line chart is not being displayed in Chart.js
- How do I filter & update dates using react-chartjs-2