Commit 4c7085bb authored by Sergey Luzyanin's avatar Sergey Luzyanin

Default values dlbl position in menu properties

parent 3f44d496
......@@ -4044,11 +4044,12 @@ DrawingObjectsController.prototype =
var data_labels = plot_area.charts[0].dLbls;
if(data_labels)
{
var nDefaultDatalabelsPos = chart_type && chart_type.getDefaultDataLabelsPosition ? chart_type.getDefaultDataLabelsPosition() : c_oAscChartDataLabelsPos.none;
ret.putShowSerName(data_labels.showSerName === true);
ret.putShowCatName(data_labels.showCatName === true);
ret.putShowVal(data_labels.showVal === true);
ret.putSeparator(data_labels.separator);
ret.putDataLabelsPos(AscFormat.isRealNumber(data_labels.dLblPos) ? data_labels.dLblPos : c_oAscChartDataLabelsPos.none);
ret.putDataLabelsPos(AscFormat.isRealNumber(data_labels.dLblPos) ? data_labels.dLblPos : nDefaultDatalabelsPos);
}
else
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment