@@ -159,6 +159,8 @@ func (f *File) addChart(opts *Chart, comboCharts []*Chart) {
159
159
WireframeContour : f .drawSurfaceChart ,
160
160
Bubble : f .drawBubbleChart ,
161
161
Bubble3D : f .drawBubbleChart ,
162
+ HighLowCloseChart : f .drawStockChart ,
163
+ OpenHighLowCloseChart : f .drawStockChart ,
162
164
}
163
165
xlsxChartSpace .Chart .drawChartLegend (opts )
164
166
xlsxChartSpace .Chart .PlotArea .SpPr = f .drawShapeFill (opts .PlotArea .Fill , xlsxChartSpace .Chart .PlotArea .SpPr )
@@ -689,6 +691,26 @@ func (f *File) drawBubbleChart(pa *cPlotArea, opts *Chart) *cPlotArea {
689
691
return plotArea
690
692
}
691
693
694
+ func (f * File ) drawStockChart (pa * cPlotArea , opts * Chart ) * cPlotArea {
695
+ plotArea := & cPlotArea {
696
+ StockChart : []* cCharts {
697
+ {
698
+ VaryColors : & attrValBool {
699
+ Val : opts .VaryColors ,
700
+ },
701
+ Ser : f .drawChartSeries (opts ),
702
+ DLbls : f .drawChartDLbls (opts ),
703
+ AxID : f .genAxID (opts ),
704
+ },
705
+ },
706
+ ValAx : f .drawPlotAreaValAx (pa , opts ),
707
+ DateAx : f .drawPlotAreaCatAx (pa , opts ),
708
+ }
709
+ ser := * plotArea .StockChart [0 ].Ser
710
+ ser [0 ].Val .NumRef .NumCache = & cNumCache {}
711
+ return plotArea
712
+ }
713
+
692
714
// drawChartGapWidth provides a function to draw the c:gapWidth element by given
693
715
// format sets.
694
716
func (f * File ) drawChartGapWidth (opts * Chart ) * attrValInt {
0 commit comments