capitalone / react-native-pathjs-charts

Android and iOS charts based on react-native-svg and paths-js
Apache License 2.0
879 stars 260 forks source link

Add capacity for axis position #198

Open JulianKingman opened 7 years ago

JulianKingman commented 7 years ago

Thank you for contributing a pull request.

Please ensure that you have signed the CLA.

Closes #189

marzolfb commented 7 years ago

My apologies for taking so long to respond to this PR. I took this PR for a test drive and added the position option to the axis options for the "StockLine - Basic" chart on the example app (just like you added to the docs) and I came up with something like this:

image

Did you intend for the text labels to go "inside" of the axis lines (i.e. to the bottom of the axis line at the top and to the left the axis line at the right)?

JulianKingman commented 7 years ago

@marzolfb the orient property for the labels addresses that, doesn't it?

marzolfb commented 7 years ago

You're right - I should've started with that screenshot instead. If you change the same example above to orient to 'top' on the x-axis and 'right' on the y-axis, you get this odd output:

image

I assume you must be working with a dataset+options in your testing that doesn't show the same odd behavior?