You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@zeppelin.apache.org by Andrea Santurbano <sa...@gmail.com> on 2016/06/08 15:04:38 UTC

Get stack Tooltip Value

Hi,
i'm making a dashboard with Zeppelin and Spark, the tool is fantastic but i
have a little problem: i have to get some values from the d3 visualization (on
click on stack for instance) from the paragraph "A" and use this values to
start a paragraph "B" (via rest api). Is it possibile to do this?
Thank
Andrea

Re: Get stack Tooltip Value

Posted by moon soo Lee <mo...@apache.org>.
Thanks for the explain.

Currently, we can not attach event handler to chart generated by the app
via spark sql query.

When you display custom chart using d3 or any other javascript library in
Zeppelin notebook, then you can leverage angulardisplay system and use
z.runParagraph to run paragraph B.

If Zeppelin can support drill down mechanism without requiring implement
chart from scratch or complicated code writing, that would be really
useful. This can be a nice discussion topic and one of the future roadmap.

Thanks,
moon

On Thu, Jun 9, 2016 at 6:02 AM Andrea Santurbano <sa...@gmail.com> wrote:

> Hi Lee
> thanks for the feedback!
> I try to explain better my problem:
> In the paragraph A i go with the mouse over a bar of d3 chart (generated
> by the app via spark sql query): the system show a tooltip, i have to
> access to all the data that creates the tooltip;
>
> On click on d3 chart bar i get that data and i use it to run a paragrah B.
>
> I'm trying to implement a drill down mechanism between paragraphs.
>
> I hope this helps to better understand my problem.
>
>
> Il giorno mer 8 giu 2016 alle ore 19:05 moon soo Lee <mo...@apache.org> ha
> scritto:
>
>> Hi Andrea,
>>
>> On 'start a paragraph B', 'start' means create paragraph B, you'll need
>> to call rest api. If 'start' means run paragraph B, you can leverage
>> AngualrDisplay system z.run() [1][2].
>>
>> Hope this helps.
>>
>> Thanks,
>> moon
>>
>> [1]
>> http://zeppelin.incubator.apache.org/docs/0.6.0-SNAPSHOT/displaysystem/front-end-angular.html
>> [2]
>> http://zeppelin.incubator.apache.org/docs/0.6.0-SNAPSHOT/displaysystem/back-end-angular.html
>>
>>
>> On Wed, Jun 8, 2016 at 8:04 AM Andrea Santurbano <sa...@gmail.com>
>> wrote:
>>
>>> Hi,
>>> i'm making a dashboard with Zeppelin and Spark, the tool is fantastic
>>> but i have a little problem: i have to get some values from the d3
>>> visualization (on click on stack for instance) from the paragraph "A"
>>> and use this values to start a paragraph "B" (via rest api). Is it
>>> possibile to do this?
>>> Thank
>>> Andrea
>>>
>>

Re: Get stack Tooltip Value

Posted by Andrea Santurbano <sa...@gmail.com>.
Hi Lee
thanks for the feedback!
I try to explain better my problem:
In the paragraph A i go with the mouse over a bar of d3 chart (generated by
the app via spark sql query): the system show a tooltip, i have to access
to all the data that creates the tooltip;

On click on d3 chart bar i get that data and i use it to run a paragrah B.

I'm trying to implement a drill down mechanism between paragraphs.

I hope this helps to better understand my problem.


Il giorno mer 8 giu 2016 alle ore 19:05 moon soo Lee <mo...@apache.org> ha
scritto:

> Hi Andrea,
>
> On 'start a paragraph B', 'start' means create paragraph B, you'll need to
> call rest api. If 'start' means run paragraph B, you can leverage
> AngualrDisplay system z.run() [1][2].
>
> Hope this helps.
>
> Thanks,
> moon
>
> [1]
> http://zeppelin.incubator.apache.org/docs/0.6.0-SNAPSHOT/displaysystem/front-end-angular.html
> [2]
> http://zeppelin.incubator.apache.org/docs/0.6.0-SNAPSHOT/displaysystem/back-end-angular.html
>
>
> On Wed, Jun 8, 2016 at 8:04 AM Andrea Santurbano <sa...@gmail.com>
> wrote:
>
>> Hi,
>> i'm making a dashboard with Zeppelin and Spark, the tool is fantastic but
>> i have a little problem: i have to get some values from the d3
>> visualization (on click on stack for instance) from the paragraph "A"
>> and use this values to start a paragraph "B" (via rest api). Is it
>> possibile to do this?
>> Thank
>> Andrea
>>
>

Re: Get stack Tooltip Value

Posted by moon soo Lee <mo...@apache.org>.
Hi Andrea,

On 'start a paragraph B', 'start' means create paragraph B, you'll need to
call rest api. If 'start' means run paragraph B, you can leverage
AngualrDisplay system z.run() [1][2].

Hope this helps.

Thanks,
moon

[1]
http://zeppelin.incubator.apache.org/docs/0.6.0-SNAPSHOT/displaysystem/front-end-angular.html
[2]
http://zeppelin.incubator.apache.org/docs/0.6.0-SNAPSHOT/displaysystem/back-end-angular.html


On Wed, Jun 8, 2016 at 8:04 AM Andrea Santurbano <sa...@gmail.com> wrote:

> Hi,
> i'm making a dashboard with Zeppelin and Spark, the tool is fantastic but
> i have a little problem: i have to get some values from the d3
> visualization (on click on stack for instance) from the paragraph "A" and
> use this values to start a paragraph "B" (via rest api). Is it possibile
> to do this?
> Thank
> Andrea
>