Skip to content

Commit

Permalink
Merge pull request #884 from galzo/fix/834/data-label-format-corrupt
Browse files Browse the repository at this point in the history
fix(#834): Fixed data label corruption bug
  • Loading branch information
gitbrent authored Jan 14, 2021
2 parents b5f35ba + b425e61 commit e93efae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gen-charts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ function makeValAxis(opts: IChartOptsLib, valAxisId: string): string {
title: opts.valAxisTitle || 'Axis Title',
})
}
strXml += ' <c:numFmt formatCode="' + (opts.valAxisLabelFormatCode ? opts.valAxisLabelFormatCode : 'General') + '" sourceLinked="0"/>'
strXml += `<c:numFmt formatCode='${(opts.valAxisLabelFormatCode ? opts.valAxisLabelFormatCode : "General")}' sourceLinked="0"/>`;
if (opts._type === CHART_TYPE.SCATTER) {
strXml += ' <c:majorTickMark val="none"/>'
strXml += ' <c:minorTickMark val="none"/>'
Expand Down

0 comments on commit e93efae

Please sign in to comment.