jettro / c3-angular-directive

Contains angularjs directives that use c3js to create good looking graphs
http://jettro.github.io/c3-angular-directive/
MIT License
203 stars 98 forks source link

Change column width #168

Closed brandonros closed 6 years ago

brandonros commented 7 years ago
ctrl.chart = {
  data: buildChartData(),
  columns: [
    {
      id: 'foo',
      type: 'bar',
      name: 'foo',
      width: '200'
    }
  ],
  xAxis: {
    id: 'cycleDate'
  }
};
<c3chart ng-if="ctrl.chart"
         bindto-id="foo"
         chart-data="ctrl.chart.data"
         chart-columns="ctrl.chart.columns"
         chart-x="ctrl.chart.xAxis">
  <chart-axis>
      <chart-axis-x axis-position="outer-center"
                    axis-label="foo">
  </chart-axis>
</c3chart>

Does a whole lotta nada.

jettro commented 6 years ago

Correct was not intended to work this way, you can use the chart-bar directive.