what i think is that you want to achieve something like this.

you have something like event starting on x date and you want to draw line up to y date.

so, you are trying to use this using stacked bar chart so, you get lines across y axis.

if i am correct then i would suggest you to use highstock, it is one of the library developed by highcharts.

highstock is preferred api to create timeline charts.

i have created a sample fiddle which help you to start. here you go:


so: after much pain and suffering, i was missing this stanza which needed to be passed as configuration for my chart:

              plotoptions: {
                column: {
                  stacking: 'normal'

and even that took me a long time to find, because i had that stanza in there for most of my testing, but had not camelcased plotoptions. bangs head on keyboard multiple times and weeps

it's working great now. other hassle: to get jsfiddle to return json to you over an ajax call ('/echo/json/'), you must post to it. took me a while to determine why the heck $.getjson wasn't working also.

Related Query

More Query from same tag