Disable default font for charts
6 years 9 months ago #6559
by Marc Diez
Disable default font for charts was created by Marc Diez
Hi, I've just installed vChart and been testing it for a couple of days.
I'd want to use my template's default Google font, but I see that both font-family and font-size is hardcoded into each parameter:
Is there any way to disable this?
I'd want to use my template's default Google font, but I see that both font-family and font-size is hardcoded into each parameter:
Code:
<text text-anchor="middle" x="520.3333333333333" y="281.9" font-family="Arial" font-size="14" stroke="none" stroke-width="0" fill="#222222">June</text>
Is there any way to disable this?
Please Log in to join the conversation.
6 years 9 months ago #6560
by Daniel
Thanks
Daniel
Replied by Daniel on topic Disable default font for charts
Hi,
Please let me know which particular text you want to change the font for?
Please let me know which particular text you want to change the font for?
Thanks
Daniel
Please Log in to join the conversation.
6 years 9 months ago #6562
by Daniel
Thanks
Daniel
Replied by Daniel on topic Disable default font for charts
I meant where do you want to apply the mentioned font. On the legend, X Axis, Y Axis?
Thanks
Daniel
Please Log in to join the conversation.
6 years 9 months ago - 6 years 9 months ago #6563
by Marc Diez
Replied by Marc Diez on topic Disable default font for charts
Well, I'd like all the text on the charts to be my template font. I'm using stacked charts and pie charts.
I've attached a sample of how I want it, manually made with the dev tools on Firefox by leaving blank the "font-family" attribute on <text> tags.
I've attached a sample of how I want it, manually made with the dev tools on Firefox by leaving blank the "font-family" attribute on <text> tags.
Last edit: 6 years 9 months ago by Marc Diez.
Please Log in to join the conversation.
6 years 9 months ago #6566
by Daniel
Thanks
Daniel
Replied by Daniel on topic Disable default font for charts
All the formatting options including font family/style are there under Formatting Section on Add/Edit Chart page. Please check...
Thanks
Daniel
Please Log in to join the conversation.