Hey, We are trying to integrate gooddata insights...
# gooddata-ui
k
Hey, We are trying to integrate gooddata insights using insightview , we are passing the insights IDs to our dashboard. This is working fine, but we are looking to also have filters for each insight - to start with we want to use DateFilters. We have tried looking at the documentation & adding the filter property but the execution is failing. This is something we are trying to achieve - a filter on each insight. Added a sample below
m
Hi Kovil, you mention the execution is failing - Can you please provide us with the error you’re seeing there, or the related TraceID? Also, can you please provide us with the code snippet you’re using this so we can verify if it’s setup correctly?
k
Hey, so we figured it out 5 mins ago. Are there any examples on how to use filters with insight view? We are not able to find. Also in all examples a md file is used, why is that required? Can we call a data point which is in gooddata
m
Could this be what you’re looking for in this case? https://sdk.gooddata.com/gooddata-ui/docs/filter_visual_components.html#date-filter As mentioned in our InsightView component doc: https://sdk.gooddata.com/gooddata-ui/docs/visualization_component.html#filters Filters For more information, see Filter Visual Components.
k
Is there a way to fetch all the configs of this datefilter. Which is provided here. Are we able to fetch this via an API?
Also - How can we control CSS for insightview? I mainly want to control headline element right now.
m
Hi Kovil, my apologies for the delay in getting back to you. Firstly, pleae make sure you’re using the lastest version of our documentation: https://www.gooddata.com/docs/gooddata-ui/latest/references/filters/date_filter/#deleting-datefilterconfig Regarding the date filter config, please see the following section and subsections here: Relative date filter https://www.gooddata.com/docs/gooddata-ui/latest/learn/visualize_data/filter_visual_components/#FilterVisualComponents-Relativedatefilter Please also see the Date Filter Component example and it’s code that which I hope you’ll find useful: https://gdui-examples.herokuapp.com/date-filter-component
Regarding the control CSS for insightview - I will need to check this for you and get back to you with more details
k
Ok - We are trying to override the font, colour and secondary metrics but we don’t know which classes are affecting the component. Any documentation for that?
m
Hi Kovil, font and color in your components can be changed via Theme Provider component, e.g: import { ThemeProvider } from "@GoodData Linen/sdk-ui-theme-provider"; <div> <ThemeProvider> <BubbleHoverTrigger> <Button tagName="span" value="Hover over this link..." className="gd-button-link" /> <Bubble className="bubble-primary"> This is bubble content. <br /> <Button value="Click here!" className="gd-button-positive" /> </Bubble> </BubbleHoverTrigger> </ThemeProvider> </div>
Please check the following documentation for more details: https://www.gooddata.com/docs/gooddata-ui/latest/learn/apply_theming/