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

Question: Provide individual TextStyle to SideTitles item #439

Closed
PocketDaniel opened this issue Sep 4, 2020 · 6 comments
Closed

Question: Provide individual TextStyle to SideTitles item #439

PocketDaniel opened this issue Sep 4, 2020 · 6 comments
Labels
enhancement New feature or request Fundamental

Comments

@PocketDaniel
Copy link

I am wondering, if it is possible to provide individual TextStyle to particular SideTitle item.

Use case: I am trying to implement LineChart, where user can select particular value on xAxis (it is a date value in my case) and other data (outside chart widget) will update accordingly. To indicate selected xAxis value I am using ExtraLinesData -> VerticalLine to draw line at selected xAxis value. But additionally I want to change the text color of SideTitle item, but as I can see - SideTitles have common textStyle property for all titles and I can't see any possibility to override this value for particular item.

Example how it should look like:
IMG_6393

Is this possible to do and I am missing it?

@imaNNeo imaNNeo added enhancement New feature or request Fundamental labels Sep 25, 2020
@imaNNeo
Copy link
Owner

imaNNeo commented Sep 25, 2020

Hi, yes we can have it easily.
Thanks for suggesting and contributing!

imaNNeo added a commit that referenced this issue Sep 25, 2020
…able-text-style

Feature/side title customizable text style, #439
@LuisCampos97
Copy link

Hi @imaNNeoFighT
First of all, congratulations on your excellent work on this spectacular charts library.
As I need this feature with urgency, I would like to know when this new version will be released?

@imaNNeo
Copy link
Owner

imaNNeo commented Oct 6, 2020

Hi @LuisCampos97, it's my pleasure to hear that.
Unfortunately, I am in the treatment process of COVID-19. I will do my best ASAP.
Stay tuned!

@LuisCampos97
Copy link

Sad to hear that @imaNNeoFighT. Good luck with your treatment, everything will be fine.
May you return strong to work.
Best regards.

@imaNNeo imaNNeo mentioned this issue Oct 6, 2020
@imaNNeo
Copy link
Owner

imaNNeo commented Oct 6, 2020

Changed SideTitle's textStyle property to getTextStyles getter (it gives you the axis value, and you must return a TextStyle based on it), It helps you to have a different style for specific text, check it in 0.12.0

Sample 3 (Source Code)

@imaNNeo imaNNeo closed this as completed Oct 6, 2020
@LuisCampos97
Copy link

@imaNNeoFighT Thank you very much for the speed at the merge. You are simply the greatest.
Keep up the good work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Fundamental
Projects
None yet
Development

No branches or pull requests

3 participants