score:1
Accepted answer
please remove refresh attribute in your code.
<column-chart :min="0" height="400px" xtitle="city"
:data="series" label="value"></column-chart>
console error will not show. if you remove the refresh option. refresh should be from your url. not from chart.
score:0
<line-chart :data="charturl" :refresh="30"></line-chart>
<script type="text/javascript">
var app = new vue({
el: '#app',
data: {
charturl: 'your_url.php'
}
});
</script>
in your_url.php
$arr = array(
'1' => '13',
'2' => '15',
'3' => '4',
'4' => '4',
'5' => '40',
'6' => '6',
'7' => '4',
'8' => '10',
);
return json_encode($arr);
and every 30 seconds a request will be sent. if $arr change, then chart line changed.
Source: stackoverflow.com
Related Query
- Error: Data source must be a URL for refresh | console error | javascript | Highcharts
- c# WPF Webbrowser with Highchart, Javascript from external source not working "An error has occurred in the script on this page"
- Highcharts display label for pie chart using html table as data source
- HTML table as data source for highstock charts using highcharts
- array and object handling in javascript for getting highchart json data
- Heatmap multiple data labels for the same axis in dynamic way using javascript
- Using a flask variable as data source for highcharts
- Use Node.js as data source for highcharts
- how to use javascript variable for complete series data
- manipulating data for Highcharts graph using javascript
- JS HighCharts.js Pie data undefined error in code
- How do I hide the code for the chart data in highcharts?
- How to make highcharts default to 0 for missing data
- Changing data dynamically for a series in Highcharts
- Add additional data to a Highcharts series for use in formatters
- How do I dynamically change a data point in Highcharts using JavaScript
- Improve highcharts performance for large amounts of data
- JSON.parse: unexpected non-whitespace character after JSON data in javascript
- How to get Render Performance for Javascript based Charting Libraries?
- highcharts always console error ablout bubble_compiled.js?
- JavaScript error when using Highcharts
- Highcharts not displaying data labels for Pie chart in arabic
- Optimize JavaScript DrillDown code
- Highcharts is not defined. Error log in console
- php: laravel slow view render time when rendering javascript for highcharts
- Use an array of objects for series data in Highcharts
- Highchart (Column Chart) : Few data labels are not appearing for a series
- Rails - convert date string into javascript date object for highcharts
- Highcharts how to use JavaScript variable as series data source?
- Formatting JSON data monthwise for HighCharts using MySQL
More Query from same tag
- Preserving jQuery dependency for highcharts with requireJS optimizer
- How to change highcharts opacity on hover?
- How to color pictured bars in Highstock chart
- Highcharts pie color of a part when i click on this
- How to change the axis of Dual axes Graph
- Why is Y-Axis range so wide in Highcharts Plot?
- change VueJS component data value from inside Highchart event
- highcharts - Remove only legend for colorAxis (keep legend for series)
- dynamic multiple series from different CSV-files
- Wicked-Charts: This website contains interactive content
- HIGHCHARTS Treemap update is not working with animation
- Highstock weird y-axis scale difference in same data dual series
- Highmaps in React
- Automatically zooming in on highcharts after loading
- HighCharts using Themeroller
- Highcharts.js, how to zoom in on one chart to resize another as Stackoverflow has done?
- Highcharts gauge, set retrieved data after $.getJSON call
- Change the color of the bar chart based on the value
- How to set color for non plotting Area in HighChart
- Highcharts, set halo on select in pie chart
- How to get column chart in angular using highcharts using dynamic data
- External JSON from API into array?
- highchart json data points
- Show how many elements every X time with HighCharts
- Modifing the "X" close button of highslide popups
- Highchart pie legend circles
- How can I load a custom popup on a click event in Highcharts?
- Highchart: Irrelevent YAxis Scale at the end
- Increase Height Of Chart On Export
- how to get basic line highchart dynamically through json data