It works :) thanks again. Can i know how to make the the second 
visualization become red color(small circle) and overlap on the first 
visualization(blue color) ? i tried many way before this but still cant get 
it. Hope you can tell me where to change or add so i can learn from that .

On Saturday, May 4, 2013 1:22:12 AM UTC+8, asgallant wrote:
>
> Try modifying the code to draw the small circles like this:
>
> // draw the small circles
>
> // set the alpha for the small circles
> ctx.globalAlpha = 0.5;
>
> ctx.beginPath();
> ctx.moveTo(tempX[i],tempY[i]);
> ctx.fillStyle=color[i];
> ctx.fillStyle=color1[i];
> ctx.arc(tempX[i],tempY[i],data[i]*3,0,Math.PI*2,true); /* value to change 
> the diameter of the small circle*/ 
> ctx.stroke();
> ctx.fill();
> ctx.fillStyle="black";
> ctx.font="15px Arial";
> ctx.fillText(data[i],tempX[i],tempY[i]);
> ctx.closePath();
>
> // reset the alpha to 1
> ctx.globalAlpha = 1;
>
> On Friday, May 3, 2013 12:28:40 PM UTC-4, Cloey wrote:
>>
>> sorry, can you show me where i want to change, no really get it ,thanks
>>
>> On Friday, May 3, 2013 11:27:16 PM UTC+8, asgallant wrote:
>>>
>>> I think what you want to do it change the context.globalAlpha parameter 
>>> when you draw your small circles.  When you change this parameter, 
>>> everything you draw afterward will have this alpha level (until you change 
>>> it again).  Set it to values between 0 and 1 to enable transparency (0 is 
>>> fully transparent, 1 is fully opaque; default is 1).
>>>
>>> On Friday, May 3, 2013 10:38:37 AM UTC-4, Cloey wrote:
>>>>
>>>>
>>>> <https://lh3.googleusercontent.com/-zFvWd104ZLY/UYPKqW72D_I/AAAAAAAAAHA/B-jzEk07qEc/s1600/IMAG1988.jpg>
>>>> Hi, anyone know how to make the bubble become transparency and overlap 
>>>> on each other ?? so reader can differentiate the red color bubble and blue 
>>>> color bubble on the same visualization(picture). Or any way that related 
>>>> to 
>>>> the concept idea. i not sure whether my code is suitable ,hope someone can 
>>>> tell me if the code is not suitable and help me on this , appreciate it 
>>>> and 
>>>> thanks in advance :)
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to