Updated: 2017-06-26

Intraday Sparkline Chart

By amCharts

    Interactive intraday sparkline stock chart

    Example

    Description

    This demo shows three independent sparkline charts, each updating dynamically from a separate daily stock price feed. (getStockTickHistory) As with other amCharts’ dynamic data load demos, this one uses Data Loader plugin . The CloudQuote data is processed using Data Loader’s postProcess handler. It allows setting up a custom function that the loaded data is run through before it is passed on to the chart.

    Demo uses this handler to both reformat the data into the desired format, as well as check it for some other signs, like if the data is coming from the previous trading day, or if there are no data points for today yet, and update appropriate informative labels on the chart itself.

    ... 
    "dataLoader": {
    "url": "https://api.cloudquote.net/fcon/getStockTickHistory.json?symbol=MSFT", "format": "json",
    "postProcess": AmCharts.parseFinancialContentJSON,
    "reload": 10
    }
    ...
    

    The reload parameter above also instructs Data Loader to poll the server for the update data every 10 seconds.

    About amCharts

    amCharts is a company who specializes in providing programming libraries for all kinds of data visualizations. Founded, manned, supported and maintained by true developers, amCharts focuses on creating JavaScript products that allow easy addition of interactive charts and maps to websites and applications.

    With 10+ years experience in the business of data visualization under their belts, amCharts team is able to keep all their products cross-platform and extremely flexible, yet easy to use, with hardly any learning curve.

    amCharts products - JavaScript Charts (regular chart types like Serial, Pie, GANTT, Funnel, Radar, etc.), JavaScript Stock Chart (Complex date/time-based visualizations with comparative features) and JavaScript Maps - are available as a fully functional completely free versions, or as paid commercial versions.

    Download options

    Commercial license options