score:0
First of all I want to thank everyone who have give their best suggestion and also including demo app. I have solved my Issue something like this ,
Here is the simple HTML code , where the chart will be load
<div style="margin-top: 3px; margin-left: 0px;" id="dashboardChartcontent">
@*Here is the chart Element*@
</div>
Now below this I have called the Javascript function
<script type="text/javascript">
autograph();
</script>
At the top of the page I have declared the function using SetInterval function , look the code below:
function autograph() {
setInterval(displaygraphsecondtime, 8000);
setInterval(displaygraphthirdtime, 6000);
setInterval(displaygraphfirsttime, 2000);
};
These functions displaygraphsecondtime, displaygraphthirdtime, displaygraphfirstime are containing the code of high-chart .
score:0
You need to create JSON
. Return it on your PHP
or aspx
page without any html
code. Call this PHP
or aspx
page using Ajax
in the javascript
. And in setInterval()
along with addPoint
function call this Ajax
every 2-3 minutes or any duration you want. It will update the data on the X as well as Y both the axis.
score:0
You can use setInterval() function and addPoint function
score:0
You can use X axis categories option for dynamically updating X axis values.
Highcharts.charts[0].xAxis[0].update({categories:arrayname}, true);
score:2
Debal,
There are built in methods provided in api. like
setCategories()
this one will help you to add new categories to the data.
here is a working example http://jsfiddle.net/sMNr3/.
Hope this will help you.
Source: stackoverflow.com
Related Query
- Dynamically Change X-axis label name in HighCharts
- How to change axis label size when exporting in Highcharts / Highstock
- HighCharts - Dynamically Change Axis Title Color
- Server-side c# and client side javascript with json loading Highcharts gantt chart Task Progress Indicator, need to change Tooltip and Label name
- Change X axis label on Drill Down using HighCharts
- Change HighCharts axis title
- How do I dynamically change a data point in Highcharts using JavaScript
- Highcharts dynamically change bar color based on value
- How can I change the unit at y axis dynamically at Highcharts?
- Highcharts how to change x axis options
- HighCharts Dynamically Change Chart Type
- Highcharts - Long multi-line y axis labels causing following label to be removed
- Change Y Axis vertical line color in Highcharts
- How to dynamically change axis from linear to logarithmic in HighChart
- Change HighCharts axis title in 2.1.4
- Highcharts axis label before first point
- Highcharts - get visible series name dynamically
- Highcharts label format with tickPositioner in a datetime x Axis
- How to change Highcharts xAxis label color individually?
- Highcharts: Dynamically change / add axis attributes
- Highcharts show plot value on x axis label
- HighStock change tickPositions for Axis dynamically
- Highcharts - How do I dynamically change Marker radius when zooming?
- HighCharts dynamically resize renderer label or element
- Highcharts - stop Y axis value change on redraw
- Highcharts x axis label text wrapping lost on setting label step
- Get axis name in tooltip on Highcharts
- Highcharts change label text for a single series
- highcharts change rendered image source on click
- Update color of plotline label on change highcharts
More Query from same tag
- Highmaps - Political borders
- Change the zoom level for highmaps
- "pointAttr" attribute is missing in Highcharts library 5.0.0
- Highcharts with JSON to customize multiple series
- Highcharts - Get container ID from barclick
- Can we create pie chart and scatter plot combined using highcharts.js?
- Animating div on top of Highcharts very slow
- Highcharts: highlighting line chart series on legend hover
- Highcharts click events not firing when displaying multiple line series
- HighCharts Hide Series Name from the Legend
- How can I display a Highcharts organization chart with level 1 nodes below other level 1 nodes?
- High chart php, line not plotting, no error,
- How to configure date format in Highcharts?
- How to connect to end points in two linked series in HighCharts
- remove gap below highcharts area chart when all values are zero
- how can I make highlight markers in highchart
- Highcharts unable to destroy labels
- Highcharts exporting hide data labels if number doesn't fit in stacked bar
- Using HIghcharts on Codeigniter to get data name and total
- How to hide x and y axis line only in highchart?
- How to change the colour of the legend column block in Highcharts?
- $scope.$watch ... make it return a function on another scope?
- Not interpolate missing dates in Highcharts
- HighStock datagrouping approximation functions
- How can I put the Highchart to the html page
- How do I change one Directive when I click another Directive?
- Highstock - "destroy is not a function" error
- Custom series connecting line
- Highcharts drilldown resize yAxis on drilldown/drillup
- Highcharts buggy with more than 999 items in series data?