Hi I was just wondering if there was a component f...
# gooddata-ui
m
Hi I was just wondering if there was a component for KPI alerts in DashboardView with custom charts? I looked at the document examples (2nd photo https://gdui-examples.herokuapp.com/dashboardView/custom-chart) but there doesn't seem to be much on how to enable the button to set alerts like the regular DashboardView component (1st photo https://gdui-examples.herokuapp.com/dashboardView/simple) I'm not on read-only as well when rendering the dashboard view to render my custom KPI component
l
Hi Martin, Do I understand correctly that you are looking at make your own KPI component and would like to add our alert button & the connected dialog?
m
yup thats correct! this is what I have so far following the documents
l
ok cool. I don't know from the top of the head let me check out what we export
m
ok sounds good thank you!
l
alas, the alert button & dialog is not (yet) part of the public API. the default impl of KPI uses it at the moment as implementation detail.
so.. i'm afraid you cannot reuse it in your custom widget at the moment. we are however actively working in this area (DashboardView / Dashboards and the related componentry in SDK). the goal is to keep opening things up and exposing additional components as public API.
m
ok sounds good thanks for letting me kno
Just wondering, is there documentation that shows whats currently available to be customized? I'm looking to see if as well we can render charts from the DashboardView using an external library like d3 etc.
l
@Martin Au-yeung apologies for the delay. yes there is documentation on this combined with the examples. shows the customizations https://sdk.gooddata.com/gooddata-ui/docs/dashboard_view_component.html#layout you can see this in action in the custom-chart example: https://gdui-examples.herokuapp.com/dashboardView/custom-chart it shows how you can for instance change the impl of table. however similar can be achieved if you want to render some stuff with d3
the example with custom table shows how you can obtain data for the insight that should be rendered, and you can process the data and send it to a custom visual component for rendering