It is currently Fri Oct 24, 2014 9:44 am Advanced search

Flag for today?

Technical support for the Highcharts Stock package

Flag for today?

Postby fishgills » Wed Feb 08, 2012 8:27 pm

I'm having some trouble with a flag showing on a spline/line for today...

I have my main series defined:
Code: Select all
            var series = [{
                type: 'line',
                data: chart_data,
                id: "mainseries",
                name: 'Balance'
            }];
            options.series = series;


And then on the chart.events.load I have (if the main series contains today's date in it):
Code: Select all
// Further up I define stamp as today's timestamp
                           this.addSeries({
                                    onSeries: "mainseries",
                                    enableMouseTracking: false,
                                    type: 'flags',
                                    name: 'Today',
                                    data: [{
                                        x: stamp,
                                        title: 'Today'
                                    }]
                                });


And what I'm getting in my chart output:

Image

The flag isn't quite on the line??? Am I doing something wrong?
fishgills
 
Posts: 12
Joined: Wed Nov 23, 2011 11:31 pm

Re: Flag for today?

Postby hfrntt » Fri Feb 10, 2012 2:39 pm

It's a known issue (https://github.com/highslide-software/h ... issues/666). It should be fixed in the latest version
Slawek Kolodziej
Highcharts support team
hfrntt
 
Posts: 6394
Joined: Mon Aug 30, 2010 10:41 am

Re: Flag for today?

Postby fishgills » Thu Feb 16, 2012 8:22 pm

Awesome. Upgrading fixed it. :)
fishgills
 
Posts: 12
Joined: Wed Nov 23, 2011 11:31 pm


Return to Highstock Usage

Who is online

Users browsing this forum: No registered users and 6 guests