Skip to content

Commit

Permalink
完善图表数据集属性排序相关功能
Browse files Browse the repository at this point in the history
  • Loading branch information
yigekaiguan committed Nov 3, 2021
1 parent 9184af8 commit 66f0574
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1619,7 +1619,7 @@
chartSetting.initChartDataSetDataTable = function(chart, chartDataSets, index, $parent)
{
var chartDataSet = chartDataSets[index];
var dataSetProperties = (chartDataSet.dataSet.properties || []);
var dataSetProperties = chart.dataSetProperties(chartDataSet);
var propertySigns = (chartDataSet.propertySigns || {});
var dataSigns = (chart.plugin && chart.plugin.dataSigns ? chart.plugin.dataSigns : []);
var signProperties = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4789,7 +4789,7 @@
{
var cps = chart.dataSetPropertiesOfSign(chartDataSet, columnSign);
if(!cps || cps.length == 0)
cps =(chartDataSet && chartDataSet.dataSet ? (chartDataSet.dataSet.properties || []) : []);
cps = chart.dataSetProperties(chartDataSet);

return cps;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ readonly 是否只读操作,允许为null
.html("<@spring.message code='chart.chartDataSet.propertyOrder' />").appendTo($propertyOrder);
var $orderInputWrapper = $("<div class='item-lv-v' />").appendTo($propertyOrder);
$("<input type='text' class='chartDataSetPropertyOrder ui-widget ui-widget-content ui-corner-all' />")
.attr("placeholder", i).val(propertyOrders[dsp.name] || "")
.attr("placeholder", i).val(propertyOrders[dsp.name] != null ? propertyOrders[dsp.name] : "")
.appendTo($orderInputWrapper);
$propertyOrder.appendTo($dsProp);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ readonly 是否只读操作,允许为null
{name: "chart.dataSetParamValueFirst", value: "dataSetParamValueFirst(", caption: "dataSetParamValueFirst() ", meta: "chart"},
{name: "chart.dataSetParamValues", value: "dataSetParamValues(", caption: "dataSetParamValues() ", meta: "chart"},
{name: "chart.dataSetParamValuesFirst", value: "dataSetParamValuesFirst(", caption: "dataSetParamValuesFirst() ", meta: "chart"},
{name: "chart.dataSetProperties", value: "dataSetProperties(", caption: "dataSetProperties() ", meta: "chart"},
{name: "chart.dataSetPropertiesOfSign", value: "dataSetPropertiesOfSign(", caption: "dataSetPropertiesOfSign() ", meta: "chart"},
{name: "chart.dataSetProperty", value: "dataSetProperty(", caption: "dataSetProperty() ", meta: "chart"},
{name: "chart.dataSetPropertyAlias", value: "dataSetPropertyAlias(", caption: "dataSetPropertyAlias() ", meta: "chart"},
Expand Down

0 comments on commit 66f0574

Please sign in to comment.