Needs review
Project:
Highcharts
Version:
7.x-2.x-dev
Component:
API
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
25 Feb 2016 at 16:25 UTC
Updated:
20 May 2017 at 10:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kylesmith commentedAdding my patch.
This patch assumes the highstock javascript library is downloaded in the drupal site's libraries directory, alongside the highcharts library. e.g. the libraries directory should look something like:
By default, the highcharts_render() function will return a Highcharts graph. I've added a third parameter to this function, that when set to 'highstock' will render a Highstock graph.
Note that the api is different and not all options translate directly between Highcharts and Highstock.
Comment #3
joonapenttila commentedHi,
will this works with views ?
Comment #4
kylesmith commentedHi joonapenttila. This patch won't affect Views directly.
The patch defines the location of the highstock library in addition to the highcharts library. Then it adds a parameter to the highcharts_render() function to choose which library the graph uses.
I'm not sure how the Highcharts module works with Views (I use highcharts/highstock graphs directly in a custom module), but where ever the View calls the highcharts_render() function would need this parameter added, and some configuration setting to know which option to use.
Comment #5
joonapenttila commentedHi,
okay... I using this with views and need to figure out how to use histrory data for this. Highstock will be great for this!