On Sun, Aug 14, 2016 at 8:31 PM, Tharik Kanaka <[email protected]> wrote:
> Hi Sachith,
>
> This can be achieved by adding following config. For content you can
> specify colums/attributes you want to show.
>
> tooltip: {"enabled":true, "color":"#e5f2ff", "type":"symbol",
> "content":["EngineType","rpm"], "label":true}
>
> @Kalpa; For your requirement is it fine to display as following where as
> values are shown along with the columns/attributes ?
>
> country: Sri Lanka
> request count : 1234
>
>
Hi Tharik,
Yes that would be fine. I tried the same config suggested for the donut
chart, it didn't work. Following is my chart config,
var chartConfig = {
type: 'map',
x: 'Country',
renderer: 'canvas',
charts: [{ type: 'map', y: 'RequestCount', mapType : "world"}],
width: $('body').height() * 2,
height: $('body').height(),
tooltip: {"enabled":true, "color":"#e5f2ff", "type":"symbol",
"content":["Country","RequestCount"], "label":true}
};
I am using the latest VizGrammar with the fix for map tool tip [1]
[1]
https://github.com/wso2/VizGrammar/commit/2c505398bc4abf74cdb7ec59c0405776b37c39e0
> Regards,
>
> On Sun, Aug 14, 2016 at 10:10 AM, Kalpa Welivitigoda <[email protected]>
> wrote:
>
>> Hi,
>>
>> I too have a similar requirement where I want to customize the tooltip
>> for a map, is it possible that we define our own pattern?
>>
>> Current tooptip is like 'Sri Lanka 1234"
>>
>> I want to have it like,
>> 'Sri Lanka
>> Request Count: 1234'
>>
>>
>>
>> On Sun, Aug 14, 2016 at 1:46 AM, Sachith Withana <[email protected]>
>> wrote:
>>
>>> Hi Jerad,
>>>
>>> Yes I do agree with your first point. I have added a very cluttered
>>> graph here. But it's not gonna be the case in the implementation cz I'm
>>> only gonna show the top 10.
>>>
>>> But in the users perspective, rather than matching the colors, it might
>>> help to have the name in the tool tip as well. That's what I meant.
>>>
>>> Thanks,
>>> Sachith
>>>
>>> On Sat, Aug 13, 2016 at 12:54 AM, Jerad Rutnam <[email protected]> wrote:
>>>
>>>> Hi Sachith,
>>>>
>>>> In UX point of view & IMO, PIE chart is not a good solution for
>>>> representing data that has large numbers. Is it something required or can
>>>> we use some other chart type e.g. bar-chart ??
>>>>
>>>> Anyway for your question, i think it is possible to add the
>>>> corresponding name of the value to the tooltip. But not sure about showing
>>>> only the names which are in the legend.
>>>>
>>>> Regards,
>>>> Jerad
>>>>
>>>>
>>>> On Sat, Aug 13, 2016 at 1:46 AM, Sachith Withana <[email protected]>
>>>> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I have a scenario where there's a possibility of having a lot of
>>>>> inputs for the pie chart.
>>>>> Added an example chart below.
>>>>>
>>>>> [image: Inline image 1]
>>>>>
>>>>> But the tooltip *only* shows the value for the highlighted potion.
>>>>>
>>>>> Is there a way of adding the corresponding name of the value to that
>>>>> tool tip as well?
>>>>>
>>>>> And also can we show only the names of the top 10 values in the
>>>>> legend? Since it's hard to show them all.
>>>>>
>>>>> Regards,
>>>>> Sachith
>>>>> --
>>>>> Sachith Withana
>>>>> Software Engineer; WSO2 Inc.; http://wso2.com
>>>>> E-mail: sachith AT wso2.com
>>>>> M: +94715518127
>>>>> Linked-In: <http://goog_416592669>https://lk.linkedin.com/in/sac
>>>>> hithwithana
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Jerad Rutnam*
>>>> *Software Engineer*
>>>>
>>>> WSO2 Inc.
>>>> lean | enterprise | middleware
>>>> M : +94 77 959 1609 | E : [email protected] | W : www.wso2.com
>>>>
>>>> <https://wso2.com/signature>
>>>>
>>>
>>>
>>>
>>> --
>>> Sachith Withana
>>> Software Engineer; WSO2 Inc.; http://wso2.com
>>> E-mail: sachith AT wso2.com
>>> M: +94715518127
>>> Linked-In: <http://goog_416592669>https://lk.linkedin.com/in/sac
>>> hithwithana
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards,
>>
>> Kalpa Welivitigoda
>> Senior Software Engineer, WSO2 Inc. http://wso2.com
>> Email: [email protected]
>> Mobile: +94776509215
>>
>> [image: http://wso2.com/signature] <http://wso2.com/signature>
>>
>
>
>
> --
>
> *Tharik Kanaka*
>
> WSO2, Inc | lean . enterprise . middleware
>
> Email: [email protected] | Web: www.wso2.com
>
--
Best Regards,
Kalpa Welivitigoda
Senior Software Engineer, WSO2 Inc. http://wso2.com
Email: [email protected]
Mobile: +94776509215
[image: http://wso2.com/signature] <http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev