Trying your code from http://www.smartclient.com/smartgwte...ixedPlotsChart and enabling zoom I get a javascript error:
Testcase:
Exception:
Using smartgwt 07.03.16 power
Testcase:
Code:
public void onModuleLoad() { final FacetChart chart = new FacetChart(); chart.setData(MixedPlotsChartData.getData()); Facet metricFacet = new Facet("metric"); metricFacet.setInlinedValues(true); metricFacet.setValues( new FacetValue("value", "Value"), new FacetValue("avg", "Projected Average")); chart.setFacets(new Facet("time", "Period"), new Facet("region", "Region"), metricFacet); chart.setChartType(ChartType.COLUMN); chart.setStacked(false); chart.setTitle("Revenue"); chart.setCanZoom(true); chart.setExtraAxisMetrics("avg"); MetricSettings metricSettings = new MetricSettings(); metricSettings.setShowAxis(false); metricSettings.setMatchGradations("value"); metricSettings.setMultiFacet(false); metricSettings.setFixedFacetValue("North"); metricSettings.setLegendLabel("Projected Average"); metricSettings.setChartType(ChartType.LINE); chart.setExtraAxisSettings(metricSettings); HLayout layout = new HLayout(15); layout.addMember(chart); layout.setWidth100(); layout.setHeight100(); layout.draw(); }
Code:
17:00:14.941:INFO:Log:initialized 17:00:16.253:WARN:FacetChart:isc_FacetChart_0_zoomChart:The extra axis settings for metric 'avg' does not have a log scale, whereas the extra axis settings specified by its matchGradations property has a log scale. Assuming a log scale for the extra value axis for metric 'avg'. 17:00:16.263:WARN:Log:TypeError: Cannot set property 'logScale' of undefined Stack from error.stack: FacetChart.initExtraAxes(<no args: exited>) on [FacetChart ID:isc_FacetChart_0_zoomChart] @ ISC_Charts.js:410:106 FacetChart.initWidget(<no args: exited>) on [FacetChart ID:isc_FacetChart_0_zoomChart] @ ISC_Charts.js:202:75 FacetChart.init(<no args: exited>) on [FacetChart ID:isc_FacetChart_0_zoomChart] @ ISC_Core.js:2002:19 [a][c]Class.invokeSuper(<no args: exited>) on [FacetChart ID:isc_FacetChart_0_zoomChart] @ ISC_Core.js:282:93 [a][c]Class.Super(<no args: exited>) on [FacetChart ID:isc_FacetChart_0_zoomChart] @ ISC_Core.js:274:170 FacetChart.init(<no args: exited>) on [FacetChart ID:isc_FacetChart_0_zoomChart] @ ISC_Drawing.js:146:13 [a]FacetChart.createAutoChild(<no args: exited>) on [FacetChart ID:isc_FacetChart_0] @ ISC_Core.js:372:5 [a]FacetChart.addAutoChild(<no args: exited>) on [FacetChart ID:isc_FacetChart_0] @ ISC_Core.js:362:122 FacetChart.createZoomChartAndSlider(<no args: exited>) on [FacetChart ID:isc_FacetChart_0] @ ISC_Charts.js:923:2559 FacetChart.drawChart(<no args: exited>) on [FacetChart ID:isc_FacetChart_0] @ ISC_Charts.js:249:51
Comment