Next
Prev
Default

A real-time premium chart automatically updates itself in continuous with a predefined interval by adding new data to the chart. The real-time premium chart of KoolChart has advanced features compared to the real-time chart, such as:

  • Multiple cycles for refreshing data can be defined so that each data series in a chart has its own refresh cycle.
  • The real-time premium chart displays data from the left to the right of the chart. ( The real-time chart displays data from the right to the left of the chart. )

This sample real-time premium chart has 3 data series with its own data refresh cycle.

...
<Combination2DChart id="chart" ... >
  ...
  <series>
    <Line2DSeries id="lineSeries" ... >
      ...
    </Line2DSeries>
    
    <Line2DSeries id="lineSeries2" ... >
      ...
    </Line2DSeries>
    
    <Column2DSeries id="columnSeries" ... >
      ...
    </Column2DSeries>
  </series>
  ...
  <HttpMultiServiceRepeater targetController="{chart}" baseURL="http://www.koolchart.com/realtimeSample/" requestTimeout="30" ... >
    <RPCList>
      <RPCItem target="{lineSeries2}" name="rpc1" url="data3Interval.php" concurrency="last" retryCount="30" ... />
      <RPCItem target="{lineSeries}" name="rpc2" url="data5Interval.php" concurrency="last" retryCount="30" ... />
      <RPCItem target="{columnSeries}" name="rpc3" url="data23ToCurrent2.php" concurrency="last" retryCount="30" ... />
    <RPCList>
  </HttpMultiServiceRepeater>
  ...
</Combination2DChart>
...

<HttpMultiServiceRepeater>

baseURL The baseURL attribute determines the base URL of the data source. ( The URL of the data source = baseURL + url of <RPCItem> )
targetController The targetController attribute is used to set the ID of the chart.
requestTimeout The requestTimeout attribute is used to set the maximum waiting time for the request.

<RPCItem>

target The target attribute is used to set the ID of the data series.
name The name attribute is used to set the name of <RPCItem>.
url The url attribute determines the URL of the data source. ( The URL of the data source = baseURL of <HttpMultiServiceRepeater> + url )
concurrency The concurrency attribute determines the method of handling duplicate HTTP requests. The valid values are "multiple", "single", "last", and the default value is "multiple".
retryCount The retryCount attribute determines the retry count when the RPC error is encountered. The default value is "3".

© 2017 KoolChart. All rights reserved.