anychart-8.2

AnyChart Treemap drillChange current event out of sync with getDrilldownPath

ぐ巨炮叔叔 提交于 2019-12-25 03:44:14
问题 With Anychart 8.3+ I am using the TreeMap chart.listen('drillChange') listener to obtain a clicked element's information. Note: I needed to use e.current.get('name') as shown in an example, instead of e.currentTarget as per Treemap listen() documentation. However the getDrillDownPath() value seems to be one event-click behind. Why is this? chart.listen("drillChange", function(e){ // get the drilldown path and convert it to a string var text = printPath(chart.getDrilldownPath()); // set the

Setting maximum and minimum xScale values in Anychart graph results in an exception

落爺英雄遲暮 提交于 2019-12-25 01:27:12
问题 I am creating a line chart using AnyChart anychart.onDocumentReady(function() { // create line chart var dataSet = anychart.data.set([ [ "24 Apr 2019", 100.0 ], [ "24 Apr 2019", -100.0 ], [ "29 Apr 2019", 100.0 ], [ "29 Apr 2019", 100.0 ], [ "2 May 2019", 100.0 ], [ "2 May 2019", -100.0 ], [ "3 May 2019", 100.0 ], [ "6 May 2019", -100.0 ], ]); chart = anychart.line(); chart.animation(true); chart.crosshair() .enabled(true) .yLabel(false) .yStroke(null); chart.tooltip().positionMode('point');