mirror of
https://github.com/gwm17/implot.git
synced 2024-11-23 02:38:53 -05:00
range fit on candlestick demo
This commit is contained in:
parent
41a0e2c9fe
commit
1d674e7557
|
@ -1586,7 +1586,7 @@ void ShowDemoWindow(bool* p_open) {
|
||||||
ImPlot::GetStyle().UseLocalTime = false;
|
ImPlot::GetStyle().UseLocalTime = false;
|
||||||
ImPlot::SetNextPlotFormatY("$%.0f");
|
ImPlot::SetNextPlotFormatY("$%.0f");
|
||||||
ImPlot::SetNextPlotLimits(1546300800, 1571961600, 1250, 1600);
|
ImPlot::SetNextPlotLimits(1546300800, 1571961600, 1250, 1600);
|
||||||
if (ImPlot::BeginPlot("Candlestick Chart",NULL,NULL,ImVec2(-1,0),0,ImPlotAxisFlags_Time)) {
|
if (ImPlot::BeginPlot("Candlestick Chart",NULL,NULL,ImVec2(-1,0),0,ImPlotAxisFlags_Time,ImPlotAxisFlags_AutoFit|ImPlotAxisFlags_RangeFit)) {
|
||||||
MyImPlot::PlotCandlestick("GOOGL",dates, opens, closes, lows, highs, 218, tooltip, 0.25f, bullCol, bearCol);
|
MyImPlot::PlotCandlestick("GOOGL",dates, opens, closes, lows, highs, 218, tooltip, 0.25f, bullCol, bearCol);
|
||||||
ImPlot::EndPlot();
|
ImPlot::EndPlot();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user