Open vigneshtg opened 3 years ago
@vigneshtg Do you need strictly horizontal ranges or rotate them a bit as on the first screenshot?
@Shestac92 I need only horizontal ranges without rotation and to fill 3 ranges in my chart (second Screenshot) by taking only the colors in first screenshot. Further, I've mentioned my 3 ranges above which I mention here also:
96 - 98.8 - 1st region (Range 1) 98.8 - 100.4 - 2nd region (Range 2) 100.4 - 105 - 3rd region (Range 3)
Also three colors regions, I'm mentioning in the image (a part of first screenshot) as follows:
@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");
@Shestac92 Earlier, I've applied like you mentioned, but it looks like each region is filled with single color which is shown in below image:
But I need, mix of two colors in each region, for instance if you see reference image (Fever Chart image), where if you take 1st region first half of region is filled with green and near end of 1st region, it has yellow shades.
Here's a reference documentation of Anychart link where, you can see Linear Gradient case and as the code is in JavaScript how do I setup in Android? https://docs.anychart.com/Graphics/Fill_Settings
@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.
Hello, I'm using Line chart for my Android application, where I've set 3 range markers. But for each region , I need to fill with gradient colors like image below and I mean to use only the color of three regions in this image and not the orientation or angle of region:
Further, my current line chart is as follows:
Here, in above of my chart, I've set range markers with range as follows:
96 - 98.8 - 1st region 98.8 - 100.4 - 2nd region 100.4 - 105 - 3rd region.
Now how do I fill those regions with colors given in figure - 1?
Here's my code: