I would like to upgrade a combo chart with annotations associated to
the h-axis (datetime). The annotations would contain milestone
information like "product A launched" which is not necessarily related
to data points in the chart. The data looks like this:
data.addColumn('datetime', 'time');
data.addColumn({type:'string', role:'annotation'});
data.addColumn({type:'string', role:'annotationText'});
data.addColumn('number', 'Revenue');// type: area
data.addColumn('number', 'Cost');// type: area
data.addColumn('number', 'Margin');// type: line
I am stuck with two limitations though:
- annotations should be also possible for y values without x values
associated, resulting in NULL x values; I am therefore using the
'interpolateNulls: true' option. Issue: this only works for series
type: "line", it does not works for type: "area" which is what I am
using. The effect in my chart is that type line data is displayed and
type area data is not displayed for 'NULL' data points...
- annotations should be displayed as {style: 'line'}. They do not get
displayed that way in my tests and the documentation says this is not
available for data values (which does not make any sense to me...)
Any hints would be appreciated.
Thanks,
Dominic