diff --git a/implot_demo.cpp b/implot_demo.cpp index bb49a4d..53989df 100644 --- a/implot_demo.cpp +++ b/implot_demo.cpp @@ -1586,7 +1586,7 @@ void ShowDemoWindow(bool* p_open) { ImPlot::GetStyle().UseLocalTime = false; ImPlot::SetNextPlotFormatY("$%.0f"); 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); ImPlot::EndPlot(); }