SmartClient Version v11.0p_2016-09-27/PowerEdition Deployment
Google Chrome 53
Go to Feature Explorer > Charting > Simple Chart
Replace the code with the following and click Try it:
The following error is displayed:
ErrorType: TypeError
ErrorMessage: Cannot read property '0' of undefined
Setting showDataLabels to true works properly.
Setting showDataLabels to false used to work in 2016-09-07/PowerEdition
Thanks!
Google Chrome 53
Go to Feature Explorer > Charting > Simple Chart
Replace the code with the following and click Try it:
Code:
var chartData = [ {region: "West", product: "Cars", sales: 37}, {region: "North", product: "Cars", sales: 29}, {region: "East", product: "Cars", sales: 80}, {region: "South", product: "Cars", sales: 87}, {region: "West", product: "Trucks", sales: 23}, {region: "North", product: "Trucks", sales: 45}, {region: "East", product: "Trucks", sales: 32}, {region: "South", product: "Trucks", sales: 67}, {region: "West", product: "Motorcycles", sales: 12}, {region: "North", product: "Motorcycles", sales: 4}, {region: "East", product: "Motorcycles", sales: 23}, {region: "South", product: "Motorcycles", sales: 45} ] isc.FacetChart.create({ ID: "simpleChart", facets: [{ id: "product", title: "Product" }], width: "100%", height: "100%", data: chartData, // a reference to our data above valueProperty: "sales", // the property in our data that is the numerical value to chart chartType: "Column", showDataLabels: false, title: "Sales by Product" // a title for the chart as a whole });
ErrorType: TypeError
ErrorMessage: Cannot read property '0' of undefined
Setting showDataLabels to true works properly.
Setting showDataLabels to false used to work in 2016-09-07/PowerEdition
Thanks!
Comment