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

Pie chart overrides not working as expected #182

Open
omkensey opened this issue Aug 20, 2024 · 0 comments
Open

Pie chart overrides not working as expected #182

omkensey opened this issue Aug 20, 2024 · 0 comments

Comments

@omkensey
Copy link

I'm initializing the plugin config as follows:

			Reveal.initialize({
                                //[...]
				plugins: [ RevealChart ],
				chart: {
					overrides: {
						pie: {
							plugins: {
								legend: {
									maxHeight: 150,
									labels: {
										font: {
											size: 48
										}
									}
								}
							}
						}
					}
				}
			});

However, when I create a pie chart, the legend labels are still small unless I explicitly set options.plugin.legend.labels.font.size (see https://jsfiddle.net/unjapkx6/1/ for example).

What's the correct way to set the overrides in the chart config?

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

1 participant