nativescript-community / ui-chart

A powerful chart / graph plugin, supporting line, bar, pie, radar, bubble, and candlestick charts as well as scaling, panning and animations.
https://nativescript-community.github.io/ui-chart/
Apache License 2.0
33 stars 12 forks source link

Right Axis Line using same path effect as x axis #44

Closed DiegoMacBD closed 2 years ago

DiegoMacBD commented 2 years ago

Summary Right now I'm trying to draw two different things in my chart:

1.- A grid on the x Axis that looks like this:

image

using: xAxis.enableGridDashedLine(10, height, 0);

2.- A Line all the way to the right of the chart:

image using

    rightAxis.setEnabled(true);
    rightAxis.setAxisMaximum(this.graphMaximum);
    rightAxis.setAxisMinimum(this.graphMinimum);
    rightAxis.setDrawAxisLine(true);
    rightAxis.setAxisLineWidth(2);
    rightAxis.setAxisLineColor(this.colors.label);

The problem is that if I set a path effect for the x Axis (the little lines at the bottom of the chart), the right axis line also gets that path effect, ending up looking like this:

image

Is this intended or a bug in the code? if it is intended, is there a workaround for it? Thank you.

farfromrefug commented 2 years ago

@DiegoMacBD i cant see to see anything looking at the code. Could you create a repro sample? (it is abug) EDIT: i know what s happening! @DiegoMacBD Is it happening on iOs/Android? both?

farfromrefug commented 2 years ago

@DiegoMacBD should be fixed in 1.2.13

DiegoMacBD commented 2 years ago

Thank you so much, for all the help, indeed it is fixed :)