Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to draw the line on top of a custom XAxisRenderer? #3348

Closed
MananPatel95 opened this issue Mar 16, 2018 · 1 comment
Closed

Comments

@MananPatel95
Copy link

MananPatel95 commented Mar 16, 2018

What did you do?

I created a custom xAxisRenderer but the drawing of the renderer is on top of the line chart. I tried to modify drawDataSet inside of LineChartReneder but that seems to still draw the line below the xAxisRenderer. Is it possible to modify something like the "z-layer positon" for the drawing of the line on top of the renderer and other elements?

In summary, I'm trying to use a CustomLineChartRenderer and CustomXAxisRenderer but drawing stuff on "top" of the line graph using CustomXAxisRenderer. But I want the CustomXAxisRenderer to draw "below" the line graph.

What did you expect to happen?

I expect the line to be draw on top of the custom XAxisRenderer.

What happened instead?

The line is drawn "below" the custom XAxisRenderer.
Image of line chart

@liuxuan30
Copy link
Member

ask on stack overflow next time.
you have to look at draw() and see the order. I remember axis first, the data set. So changing in renderer does not take effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants