carbon-design-system / carbon-charts

:bar_chart: :chart_with_upwards_trend:⠀Robust dataviz framework implemented using D3 & typescript
https://charts.carbondesignsystem.com
Apache License 2.0
901 stars 184 forks source link

Provide customizations on Chart grids #170

Open kalai001 opened 5 years ago

kalai001 commented 5 years ago

I am submitting a...

charts version:

Issue description

The charts grid has to be customizable to have options like

Steps to produce the issue

Current behavior

Expected behavior

Screenshot or recording

t-mullen commented 5 years ago

@theiliad How's this for API:

new BaseAxisChart(container, {
  options: {
    grids: {
      x: true,
      y: true
    }
  }
})

x/y options could later be changed into objects with thickness, color and stroke options (but I think those should go into the configuration object.)

theiliad commented 5 years ago

@t-mullen That makes sense 👍

theiliad commented 4 years ago

Need specifications on which aspects of the grid need to be allowed for customizations