QCPFinancial 和 QCPGraph 有什么区别?
what is the difference between QCPFinancial and QCPGraph?
我有一个实时的大(> 百万点)图表。
我应该使用哪个 class:QCPGraph
或 QCPFinancial
?
各有什么优缺点?
它们是两种不同类型的图表。我不认为一个比另一个有优势。这取决于您要在图表中表示什么。
A plottable representing a financial stock chart.
This plottable represents time series data binned to certain
intervals, mainly used for stock charts. The two common
representations OHLC (Open-High-Low-Close) bars and Candlesticks can
be set via setChartStyle
.
A plottable representing a graph in a plot.
Graphs are used to
display single-valued data. Single-valued means that there should only
be one data point per unique key coordinate. In other words, the graph
can't have loops. If you do want to plot non-single-valued curves,
rather use the QCPCurve
plottable.
另请参阅 this example 以获得简单的 QCPGraph。
或 this example 用于 QCPFinancial。
我有一个实时的大(> 百万点)图表。
我应该使用哪个 class:QCPGraph
或 QCPFinancial
?
各有什么优缺点?
它们是两种不同类型的图表。我不认为一个比另一个有优势。这取决于您要在图表中表示什么。
A plottable representing a financial stock chart.
This plottable represents time series data binned to certain intervals, mainly used for stock charts. The two common representations OHLC (Open-High-Low-Close) bars and Candlesticks can be set viasetChartStyle
.
A plottable representing a graph in a plot.
Graphs are used to display single-valued data. Single-valued means that there should only be one data point per unique key coordinate. In other words, the graph can't have loops. If you do want to plot non-single-valued curves, rather use theQCPCurve
plottable.
另请参阅 this example 以获得简单的 QCPGraph。
或 this example 用于 QCPFinancial。