Home forums Feature Requests & Feedback canvasjs preview

This topic contains 4 replies, has 3 voices, and was last updated by  XAOPT 2 years, 3 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6736

    XAOPT
    Participant

    it would be great to be able to customize charts “on the fly”.
    I published an example of how this can be implemented: https://github.com/XAOPT/canvasjs-preview
    Screenshot: http://oi59.tinypic.com/vghjeo.jpg
    With that tool I noted that undesirable effect: http://jsfiddle.net/knj020mx/1/ . Markers doesn’t have border in legend.

    #6737

    Sunil Urs
    Keymaster

    Legend is not appearing properly because markerColor has been set to white. Works properly if we comment it out. http://jsfiddle.net/knj020mx/2/

    #6738

    XAOPT
    Participant

    Yes, sure, but markerBorderColor color was set to red and markerBorderThickness at 1. Looks nice at chart, but not in legend.

    Thank you for your answer.

    • This reply was modified 2 years, 3 months ago by  XAOPT.
    #6760

    Daniel Silva
    Participant

    Great work.
    I have taken a different approach:
    http://dreamfalcon.com/img/edit1.PNG
    http://dreamfalcon.com/img/edit2.PNG

    #6779

    XAOPT
    Participant

    About subject, in my case (v1.5.0 Beta 1):

                
    if ("pie" !== h.type && "doughnut" !== h.type && "funnel" !== h.type) k = {
        markerType: k,
        markerColor: m,
    

    Replace with:

               
    if ("pie" !== h.type && "doughnut" !== h.type && "funnel" !== h.type) k = {
        markerBorderColor: h._colorSet[0]
        markerType: k,
        markerColor: m,
    

    I.drawMarker(f + r / 2, g + this.lineHeight / 2, this.ctx, k.markerType, r, k.markerColor, null, 0);
    replace with
    I.drawMarker(f + r / 2, g + this.lineHeight / 2, this.ctx, k.markerType, r, k.markerColor, k.markerBorderColor, 1);

    • This reply was modified 2 years, 3 months ago by  XAOPT.
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.