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

Label lines with different style, larger and not for all lines in grid #439

Closed
iangmaia opened this issue Oct 2, 2015 · 1 comment
Closed

Comments

@iangmaia
Copy link
Contributor

iangmaia commented Oct 2, 2015

I was searching some way to achieve the following: have a grid on a line chart that has axis labels, but not for all grid lines. Also, would it be possible to have a slightly different style for these label grid lines (like different width) and make it a bit bigger than the chart borders?
This is the effect:
screen shot 2015-10-02 at 16 16 33

Thanks!

@liuxuan30
Copy link
Member

for the visual effect, I guess you need to override the drawing the gird lines. Take a look at renderGridLines and renderAxisLine in axis renderer files and other useful methods. Just find proper interval and add a little more value, like 5 pt to y coordinates when drawing lines.

Some custimzations works for you but not others, so it's better for you to override correspoinding methods to get what you want. With a good code base, it's easy for you to figure out how to do it.

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