Aleksandr Shestakov
Aleksandr Shestakov
@SheroXee Unforutnately, we do not support Fragment. The only available approach to layout the Pie chart is described in [the snippet](https://github.com/AnyChart/AnyChart-Android/blob/master/sample/src/main/java/com/anychart/sample/charts/PieChartActivity.java).
@vigneshtg Do you need strictly horizontal ranges or rotate them a bit as on the first screenshot?
@vigneshtg Ok, then to achieve that you need apply the color using `.fill()` function. Like below: ``` cartesian.rangeMarker(0).from(96.0d).to(98.8d).fill("red"); cartesian.rangeMarker(1).from(98.8d).to(100.4d).fill("green"); cartesian.rangeMarker(2).from(100.4d).to(105.0d).fill("pink"); ```
@vigneshtg Unfortunately, it's not possible in the current version of the library, the vertical gradient is not implemented in it. We will take it into account for future updates.
@trisandhyanagam Try to call the following code before creating new chart: ``` APIlib.getInstance().setActiveAnyChartView(anyChartView); ``` Also, do you receive any errors?
@PrashantAryan To achieve that you need to apply the legend position. The legend and chart will be aligned automatically. For details, check [the sample](https://playground.anychart.com/eCRDaUQE).
@aviroop89 For smooth lines, you can use the spline() series type. Regarding the issue, please, provide more details (the simplified code that reproduces the issue).
@aayum Unfortunately, I'm not familiar with Kotlin, but your code works well in plain Java. Here is the sample based on your code: Please, check that your xml layout is...
@aayum Did you try to launch the chart with plain Java? We didn't test with Kotlin.
@krishnamurthy12 Yes, you can add xScroller to the basic charts. Here is the sample code: ``` AnyChartView anyChartView = findViewById(R.id.any_chart_view); Cartesian cartesian = AnyChart.line(); cartesian.xScroller(true); OrdinalZoom xZoom = cartesian.xZoom(); xZoom.setToPointsCount(6,...