Any docs/example on using scatter type?

Hi, I’ve just come across this project, v.impressed so far, I’m trying to make a line graph that has dates along the x-axis and share price values on the y-axis. The data I have comes at irregular dates (weekdays not including holidays).

I understand from skimming through other issues that v2 implements a new scatter type that should give me what I need. I’m keen to test this but can’t find any explanation of how to use it in the v2 alpha.

Before I go digging into the code looking for answers, has there been any documentation or an example posted somewhere that I’m missing?

Author: Fantashit

1 thought on “Any docs/example on using scatter type?

  1. @WesTyler we originally wrote the scatter type to address the limitations of the line chart x-axis scale (it gets crowded when there are lots of labels). You can definitely use the scatter chart without the line or the fill. The easiest way to do so would be to set the draw colours to transparent.

    something like this in the config should work (assuming you are using the v2,0 alpha).

    elements: {
        line: {
            backgroundColor: 'rgba(0, 0, 0 ,0)',
            borderWidth: 0,
            borderColor: 'rgba(0, 0, 0, 0)',
            fill: false,

Comments are closed.