version: v11.0p_2017-06-24/EVAL Deployment
browser: firefox 24.0
Hi, I want to create hover components for my dual axis chart and was wondering if there is a way to show the values of the second y axis. Currently I can only show the the values for the first.
Basically from the showcase I tried to create a dual axis chart,
I know that getNearestDrawnValue() only works for the first metric, but I also tried getNearestDrawnValue(Integer x, Integer y, String metric) with "y2axis" and "metric" as the metric, but neither worked. Is there another way to access the values for the second set of data thats being graphed with the second y-axis?
I tried to look for a solution in the forums but did not come across any. If there was a solution that I missed, a reference to it would be great.
Thanks in advance.
browser: firefox 24.0
Hi, I want to create hover components for my dual axis chart and was wondering if there is a way to show the values of the second y axis. Currently I can only show the the values for the first.
Basically from the showcase I tried to create a dual axis chart,
Code:
final TestFacetChart chart = new TestFacetChart(chartType); chart.setLabelCollapseMode(LabelCollapseMode.SAMPLE); Facet metricFacet = new Facet(); metricFacet.setValues(new FacetValue("y1axis", "axis 1"), new FacetValue("y2axis", "axis 2")); metricFacet.setInlinedValues(true); metricFacet.setId("metric"); chart.setFacets(new Facet("date"), new Facet("name"), metricFacet); chart.setExtraAxisMetrics("y2axis"); MetricSettings metricSettings = new MetricSettings(); metricSettings.setChartType(chartType); metricSettings.setMultiFacet(false); metricSettings.setShowDataPoints(true); chart.setExtraAxisSettings(metricSettings); chart.setDataColors(colors); chart.setData(data);
I tried to look for a solution in the forums but did not come across any. If there was a solution that I missed, a reference to it would be great.
Thanks in advance.
Comment