Home Forums Chart Support Сustom design of the chart elements

Сustom design of the chart elements

Viewing 5 posts - 1 through 5 (of 5 total)
  • #34315

    Good afternoon Dear specialists! I ask for advice! Please tell me how to make a custom design of the chart elements? You can pass a css class by any method to change the graphical properties of a chart item. In particular, for example, to make the effect of waterlighting the lines of the chart, add the effect of ripple of chart points and chart elements. Could it be possible to use existing libraries with canvasjs connectivity?

    #34342

    @oleglr,

    You can customize chart elements like Title, Legend, Axis, Data using chart options like fontFamily, fontColor, labelFontColor, labelFontFamily, labelFontSize, lineColor, makerColor, etc. Please refer to this documentation page for list of customization options available.

    In particular, for example, to make the effect of waterlighting the lines of the chart, add the effect of ripple of chart points and chart elements. Could it be possible to use existing libraries with canvasjs connectivity?

    Could you please provide a pictorial representation of your requirement so that we can understand your scenario better and help you out with appropriate resources?

    Chart elements with customized styling

    ___________
    Indranil Deo
    Team CanvasJS

    #34343

    Effect example Good day! I am sending you a link, there is an example on the page that clearly demonstrates the effect that I need to add to the chart in order to get the ripple of the head of the running line of the current spot price.

    #34344

    Element highlighting effect example This example shows a visual application of the lighting effect decoration. By what means can this be achieved.

    #34363

    @oleglr,

    You can customize the line series to highlight the markers using the markerBorderColor, markerBorderThickness, markerColor, etc. properties as shown below –

    data: [
      {
        markerBorderColor:"#238EF6",
        markerBorderThickness: 3,
        markerColor: "#00FF00",
        lineColor: "#238EF6",
        type: "line",
        dataPoints: [
          { x: 10, y: 71 },
          { x: 20, y: 55},
          { x: 30, y: 50 },
          { x: 40, y: 65 },
          { x: 50, y: 95 },
          { x: 60, y: 68 },
          { x: 70, y: 28 },
          { x: 80, y: 34 },
          { x: 90, y: 14}
        ]
      }
    ]

    Please take a look at this JSFiddle for a working example. However, creating chart with ripple effect in the dataPoint is not possible as of now.

    Chart with customized markers

    ___________
    Indranil Deo
    Team CanvasJS

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.