youcef92 / flotr

Automatically exported from code.google.com/p/flotr
0 stars 0 forks source link

Candlestics do not draw properly when x-axis is on time mode #126

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. document.observe('dom:loaded', function(){
                                            Flotr.draw($('" + ChartName +
@"'), [[" + ChartData + @"]], 
                                            {
                                                candles: { show: true,
wickLineWidth: 2, candleWidth: 0.6, fill: true, barcharts: false },
                                                xaxis: { noTicks: 7,
tickFormatter: function(obj){ return Flotr.Date.format(new
Date(parseInt(obj)),""%y-%b-%d %H:%M:%S"");} }
                                            });
                                            });
2. Feed it
DateTime.UtcNow.Subtract(DateTime.Parse("1970-01-01")).TotalMilliseconds;
(the c# equivalent of the curent UTC time miliseconds from 1970 (js default)

The graph will create candlesticks which are very thin! Even when you
change them to barcharts type, they also appear very thin.
When you change the x-axis values to integers the candles appear just fine.

i've used both the latest stable and the latest trunk release

I am using it in a ASP.Net enviroment, but I do not think that matters
really. If you could tell me where to look, I could probably try and help
and upload the changes.

Thank you for your efforts so far. This libray is easy to use and looks
amazing.

Original issue reported on code.google.com by panayiot...@gmail.com on 28 Apr 2010 at 11:09

GoogleCodeExporter commented 8 years ago
this is an image of the problem

Original comment by panayiot...@gmail.com on 28 Apr 2010 at 1:58

Attachments:

GoogleCodeExporter commented 8 years ago
This is very related to issue 70.

Original comment by boem...@gmail.com on 28 Apr 2010 at 10:32

GoogleCodeExporter commented 8 years ago
This is very related to issue 70.

Yeap, it looks so.

Original comment by panayiot...@gmail.com on 7 May 2010 at 2:05

GoogleCodeExporter commented 8 years ago
Marking it as duplicate

Original comment by peter....@solide-ict.nl on 22 Jun 2010 at 1:29