SmartClient Version: SNAPSHOT_v12.0d_2018-03-07/AllModules Development Only (built 2018-03-07)
and
SmartClient Version: v11.1p_2018-03-07/AllModules Development Only (built 2018-03-07)
Chrome on OSX
Hello, please try the #simpleChart sample modified like that:
You'll see that it won't display the data values, because there's a value which is zero, so obviously there isn't enough space to show it.
But actually in this case I was expecting to see them, as it's the case when the value is null instead of zero.
and
SmartClient Version: v11.1p_2018-03-07/AllModules Development Only (built 2018-03-07)
Chrome on OSX
Hello, please try the #simpleChart sample modified like that:
Code:
var chartData = [ {region: "West", sales: 2}, {region: "North", sales: 1}, {region: "East", sales: 3}, {region: "South", sales: 0} ] isc.FacetChart.create({ ID: "simpleChart", facets: [{ id: "region", title: "Region" }], data: chartData, valueProperty: "sales", chartType: "Doughnut", showDataValues: true, showTitle: false, showShadows: false, useAutoGradients: false, showLegend: false, showValueOnHover: false, showContextMenu: "false" }); isc.DynamicForm.create({ ID: "chartSelector", items: [{ name: "chartType", title: "Chart Type", type: "select", valueMap: ["Area", "Column", "Bar", "Line", "Pie", "Doughnut", "Radar"], defaultValue: "Doughnut", changed : function (form, item, value) { simpleChart.setChartType(value) } }] }); chartSelector.observe(simpleChart, "setChartType", "chartSelector.getItem('chartType').setValue(simpleChart.chartType)"); isc.VLayout.create({ ID: "simpleChartLayout", width: "100%", height: "100%", membersMargin: 20, members: [chartSelector, simpleChart] });
But actually in this case I was expecting to see them, as it's the case when the value is null instead of zero.
Comment