question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom shapes for points

See original GitHub issue

It would be great to be able to define different shapes (circle, square, triangle, star, …) for the graph points.

They are 2 main reason for that:

  • Printing on a grey scale printer
  • Color blind people

Some topic were create on google group without response: https://groups.google.com/d/topic/c3js/I2UhY4U6zI0/discussion https://groups.google.com/d/topic/c3js/gZrpl0QpKYw/discussion https://groups.google.com/d/topic/c3js/6QRQ1VWx3vw/discussion

Legend should use the same shape as the one define for the points.

Here is how I imagine the configuration:

point: {
  shape: {
    'data1': 'circle',
    'data2': 'square',
    'data3': 'triangle'
  }
}

or, in order to define some other custom attributes:

point: {
  'data1': {
    shape: 'circle',
    color: '#ff0000',
    r: 2
  },
  'data2': {
    shape: 'square',
    color: '#0000ff',
    r: 3
  }
}

Issue Analytics

  • State:open
  • Created 9 years ago
  • Reactions:41
  • Comments:47 (2 by maintainers)

github_iconTop GitHub Comments

29reactions
aendra-rininslandcommented, Nov 3, 2016

Everyone who wants this feature, please either subscribe yourself or use an emoji response instead of replying +1.

Thanks.

9reactions
bsell93commented, Jun 13, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

5.3 Using Different Point Shapes - R Graphics Cookbook
Use slightly larger points and use custom values for the shape scale ggplot(heightweight, aes(x = ageYear, y = heightIn, shape = sex)) +...
Read more >
Customise the connection points on a shape - Diagrams.net
Define connection points in the shape style · Select the shape, then click Edit Style in the Style tab of the format panel....
Read more >
Draw or edit a freeform shape - Microsoft Support
Use the freeform and scribble tools to draw and edit shapes in your documents. Use edit points to customize the look of a...
Read more >
How to create a custom shape - Microsoft PowerPoint 365
Right-click on the shape and choose Edit Points in the popup menu: Edit Points in popup in PowerPoint 365 · On the Shape...
Read more >
Custom Shapes - Tableau
Custom shapes are powerful when telling a story with your visualizations. You can create unlimited shape combinations to show mark points and create...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found