How to draw Candlestick chart in viewbox?

175 views
Skip to first unread message

peng Mr.

unread,
Jun 14, 2020, 1:28:54 AM6/14/20
to vispy
How to draw Candlestick chart in viewbox? I tried a lot and failed


vispy_demo.png


David Hoese

unread,
Jun 14, 2020, 4:47:53 PM6/14/20
to vispy
Do you have some code for what you've tried already? There is nothing built in to vispy to do this. You'd have to do it yourself.

Dave

Note: I'm going on leave for 2 weeks so I may not respond to your response for some time.

Kai Muehlbauer

unread,
Jun 15, 2020, 3:10:06 AM6/15/20
to vi...@googlegroups.com
Hi,

David is correct, there is no special candlestick already implemented in
vispy. But you can try to build one of your own by taking MarkerVisual
('hbar' or 'vbar') at least for the body of the candles. You could try
to get the wicks with LineVisual, but this would need some treatment of
the segments.

That would only need two visuals and should be reasonable fast (taken
with a grain of salt).

- Kai

Am 14.06.20 um 22:47 schrieb David Hoese:

peng Mr.

unread,
Jun 16, 2020, 3:26:41 AM6/16/20
to vispy
thanks David and Kai.
I try used "lines" to draw,and improving it now.



bar2.png

Kai Mühlbauer

unread,
Jun 16, 2020, 3:31:26 AM6/16/20
to vi...@googlegroups.com
Hi,

thanks for sharing. This looks very promising already. We could think
about adding this as an example to vispy if you are interested to share
your results.

Looking forward to seeing more of this.

Cheers,
Kai

Am 16.06.20 um 09:26 schrieb peng Mr.:
> thanks David and Kai.
> I try used "lines" to draw,and improving it now.
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "vispy" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to vispy+un...@googlegroups.com
> <mailto:vispy+un...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/vispy/c0a946d8-1c4b-4891-ab94-f63f2da13f96o%40googlegroups.com
> <https://groups.google.com/d/msgid/vispy/c0a946d8-1c4b-4891-ab94-f63f2da13f96o%40googlegroups.com?utm_medium=email&utm_source=footer>.

Message has been deleted

peng Mr.

unread,
Jun 16, 2020, 11:33:30 AM6/16/20
to vispy


On Tuesday, June 16, 2020 at 11:31:44 PM UTC+8, peng Mr. wrote:
Hi,

The first version is finished. Visual and demo are uploaded to git: https://github.com/baoshuang/vispy_candlestick.git

I like pyqtgraph and vispy
Reply all
Reply to author
Forward
0 new messages