Hello, I am playing with modifying Insights - so f...
# gd-beginners
a
Hello, I am playing with modifying Insights - so far it's been pretty easy to apply a date range or new config to an
InsightView
object, but I'm looking to dynamically change the font now. The docs suggest I have to implement a custom visualization to do so (https://sdk.gooddata.com/gooddata-ui/docs/chart_config.html#customize-tooltips-and-fonts), which requires me to specify a lot of the state that I've already made an insight around (eg,
seriesBy
,
sliceBy
, https://sdk.gooddata.com/gooddata-ui/docs/create_new_visualization.html). Is there a way to get that information from an
InsightView
directly, so I don't have to manually duplicate the insight to change the font? Can I pass an existing insight into the new visualization somehow? I am just looking for the simplest way to render a different font on the view of an existing insight.
i
Hi @Adam Keener. To just change the Font, you should be ok using Theming capability https://sdk.gooddata.com/gooddata-ui/docs/theme_provider.html#using-the-theme-provider-component-with-a-custom-theme You dont have to define full theme object, define only font properties
a
Thank you, that worked!