BrandonReid
BrandonReid

Reputation: 1314

C3.js Change Circle Shape to Square

Using c3.js, wondering if there's any way to change the circles on a scatter plot to something else, like a rectangle? Maybe some sort of d3 script..

Would like to use shape to differentiate between two forms of data (locations & competitors).

Any help would be much appreciated!

Upvotes: 2

Views: 2138

Answers (2)

Lola
Lola

Reputation: 2648

Workarond for square in css. It is not the best way but ...

circle {
    stroke: rgb(255, 127, 14); 
    stroke-linecap: square; 
    stroke-dasharray: 0.1 60; 
    stroke-width: 14px;
}

Upvotes: 1

James Henry
James Henry

Reputation: 844

I do not believe it is currently possible, but you may want to keep on eye on/contribute to this github issue, where that feature has been requested: https://github.com/masayuki0812/c3/issues/1071

Upvotes: 3

Related Questions