An An пре 2 месеци
родитељ
комит
d3fe819a94

+ 2 - 2
charts/src/main/assets/AAChartView.js

@@ -52,14 +52,14 @@ function configurePlotOptions(aaOptions) {
 function configureEventMessageBody(selectedPoint) {
     return {
         name: selectedPoint.series.name,
-        y: selectedPoint.y,
         x: selectedPoint.x,
+        y: selectedPoint.y,
         category: selectedPoint.category,
+        index: selectedPoint.index,
         offset: {
             plotX: selectedPoint.plotX,
             plotY: selectedPoint.plotY
         },
-        index: selectedPoint.index,
     };
 }
 

+ 1 - 1
charts/src/main/java/com/github/aachartmodel/aainfographics/aachartcreator/AAChartView.kt

@@ -415,8 +415,8 @@ class AAChartView : WebView {
             x = messageBody["x"] as Double?
             y = messageBody["y"] as Double?
             category = messageBody["category"].toString()
-            offset = messageBody["offset"] as LinkedTreeMap<*, *>?
             index = (messageBody["index"] as Double?)?.toInt()
+            offset = messageBody["offset"] as LinkedTreeMap<*, *>?
         }
     } catch (e: Exception) {
         throw RuntimeException("Failed to create instance of $eventType", e)