Create markins with label

35 views
Skip to first unread message

Sergio Puyó

unread,
Apr 1, 2014, 11:04:08 AM4/1/14
to gf...@googlegroups.com
Hi!!

I'm trying to create a kind of vertical marking with a label (please see the attached image). 

As you can see, it looks odd, and after debugging a little bit, I saw that the DrawCap I'm using is called three times!! 

Are you aware about that? Is there any way to build something like this without using the DrawCap class (class to draw the context canvas of Lower or Upper Cap)  of the ErrorBarsOptions options? 

Any help will be appreciated.




snippet.jpg
Snippet.txt

Nicolas Morel

unread,
Apr 1, 2014, 1:13:08 PM4/1/14
to gf...@googlegroups.com
Sorry, I don't know why it is called 3 times. The only time I used ErrorBars was for the example and I just copy the options from flot example.
Try to reproduce with the flot example and ask on their forum ? (unless it's only reproductible with gflot)

Sergio Puyó

unread,
Apr 2, 2014, 9:15:24 AM4/2/14
to gf...@googlegroups.com
It's also happening in flot. I opened an issue :

https://github.com/flot/flot/issues/1279

Sergio Puyó

unread,
Apr 2, 2014, 10:46:05 AM4/2/14
to gf...@googlegroups.com
As I wrote in the opened issue. I have just find a fix for this setting the shadow width of the Series to 0.

<pre>
<code>
Series.create().setShadowSize(0)
</code>
</pre>

And now the "shadow drawing calls" are not being done.

Sergio Puyó

unread,
Apr 2, 2014, 10:46:46 AM4/2/14
to gf...@googlegroups.com
As I wrote in the opened issue. I have just find a fix for this setting the shadow width of the Series to 0.

Series.create().setShadowSize(0)

And now the "shadow drawing calls" are not being done.

Nicolas Morel

unread,
Apr 2, 2014, 10:49:48 AM4/2/14
to gf...@googlegroups.com
Nice, thanks for sharing!
Reply all
Reply to author
Forward
0 new messages