Hi Wiedo,

First, you have to write the custom widget and deploy it in the server.
After that, the deployed widget will appear under the widgets in the left
panel. ( one below the pages button you have clicked )
Follow the below steps to write and deploy the widget.
1. Write your widget as a react component and babel compile it
2. Place it at
<Home>/wso2/dashboard/deployment/web-ui-apps/portal/extensions/widgets/

Or else you can generate a basic widget using the widget generation wizard
[1]

[1] https://docs.wso2.com/display/SP440/Generating+Widgets

Thanks,
Tanya

On Wed, Dec 4, 2019 at 4:58 PM W. E. <[email protected]> wrote:

> Hi,
>
> Thank u for your answer. I've one more question. I would be great if u can
> answer these.
>
>
>    - After I create a dashboard I see the page below. But where can I set
>    the datasource? I want to set the datasource with a HTTP source. How can I
>    do this?
>
>
>
>
> Thanks,
> Wiedo
> ------------------------------
> *Van:* Tanya Madurapperuma <[email protected]>
> *Verzonden:* woensdag 4 december 2019 10:06
> *Aan:* W. E. <[email protected]>; Lasantha S <[email protected]>;
> Charuka Karunanayake <[email protected]>
> *CC:* WSO2 Developers' List <[email protected]>
> *Onderwerp:* Re: [Dev] Questions about dashboard
>
> Hi Wiedo,
>
> Please find my replies in-line.
>
> On Tue, Dec 3, 2019 at 5:53 PM W. E. <[email protected]> wrote:
>
> Hi,
>
> I'm currently designing a dashboard. I've a couple of questions about the
> possibilities of dashboard tooling. These are:
>
>
>    - Is it possible to connect a real time Siddhi application (created in
>    WSO2 SP) with a dashboard. So can I use a sink in the Siddhi application to
>    connect to a dashboard?
>
> Out of the box support is only available to write a siddhi app [1] and
> fetch data by writing a siddhi query [2] or to write a rdbms query[3] to
> fetch data. But might be possible to write a custom data provider and fetch
> data using a siddhi source. @Lasantha S <[email protected]>  Any
> thoughts?
>
> [1]
> https://github.com/wso2/analytics-apim/blob/master/components/org.wso2.analytics.apim.widgets/APIMApiAvailability/src/resources/widgetConf.json#L13
> [2]
> https://github.com/wso2/analytics-apim/blob/master/components/org.wso2.analytics.apim.widgets/APIMApiAvailability/src/resources/widgetConf.json#L15
> [3]
> https://github.com/wso2/analytics-apim/blob/master/components/org.wso2.analytics.apim.widgets/APIMAppCreatedAnalytics/src/resources/widgetConf.json#L15
>
>
>    - I want to make line graph in de dashboard that may hightlighs a
>    certain part (multiple lines) based on some conditions. Can I create some
>    code to implement some condition. For example when the incoming data sends
>    5 events after each other a "1" for a attribute I want to highlight those
>    events?
>
> Widget in a dashboard is basically a react component. So you can use any
> react libraries of your choice and build any visualization you wish.
>
>
>    - Can I create a combination of line and point graph? So both lines
>    and points are visible?
>
> Are you searching for a graph like this [4] ? If so refer the code at [5]
>
> [4]
> https://apim.docs.wso2.com/en/latest/Learn/Analytics/AnalyzingAPIMStatisticsWithBatchAnalytics/viewing-api-statistics/#api-latency-time
>
> [5]
> https://github.com/wso2/analytics-apim/tree/master/components/org.wso2.analytics.apim.widgets/APIMApiLatencyTime
>
>
>    - Can also add a textual box where I can display some messages in the
>    dashboard environment?
>
> Yes. You write a react component with your prefered styling of a text box
> and get that rendered in the dashboard.
>
>
>    - Is there some documentation where I can find extensive explenation
>    about dashboarding. Because now I can only find a couple basic tutorials on
>    this link:
>    https://docs.wso2.com/display/SP440/Stream+Processor+Documentation
>
> You can find documentation at [6] or refer our sample widgets written for
> api manager dashboards at [7]
>
> [6] https://docs.wso2.com/display/SP440/Creating+Custom+Widgets
> [7]
> https://github.com/wso2/analytics-apim/tree/master/components/org.wso2.analytics.apim.widgets/
>
> Thanks,
> Tanya
>
> Best regards,
> Wiedo
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
>
> --
> *Tanya Madurapperuma* | Technical Lead | WSO2 Inc.
> (m) +94718184439 | (e) [email protected]
>
> <http://wso2.com/signature>
>
>
>

-- 
*Tanya Madurapperuma* | Technical Lead | WSO2 Inc.
(m) +94718184439 | (e) [email protected]

<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to