qt - what is the difference between QCPFinancial and QCPGraph? -


i have realtime , big(> milions point) graph. class should use: qcpgraph or qcpfinancial?
advantages , disadvantages of each?

they 2 different types of graphs. don't think there advantage of 1 on other. depends on want represent in graph.

qcpfinancial:

a plottable representing financial stock chart.
plottable represents time series data binned intervals, used stock charts. 2 common representations ohlc (open-high-low-close) bars , candlesticks can set via setchartstyle.

enter image description here

qcpgraph:

a plottable representing graph in plot.
graphs used display single-valued data. single-valued means there should 1 data point per unique key coordinate. in other words, graph can't have loops. if want plot non-single-valued curves, rather use qcpcurve plottable.

enter image description here

see this example simple qcpgraph.
or this example qcpfinancial.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -