This is a migrated thread and some comments may be shown as answers.

Kendo column Chart - set width to series element

1 Answer 911 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Federico
Top achievements
Rank 1
Federico asked on 19 Sep 2018, 07:33 AM

How i set the gap attribute to series elements?

Gap attribute doesn't work, but spacing works!

<kendo-chart #chart class="chart-wrapper"
                       (seriesClick)="onSeriesClick($event)">
                           <kendo-chart-legend position="bottom"></kendo-chart-legend>
                           <kendo-chart-tooltip [shared]="true"></kendo-chart-tooltip>
                           <kendo-chart-series>
                               <kendo-chart-series-item
                                   *ngFor="let item of DATA"
                                   [data]="item.worked_hours_month"
                                   [name]="item.worker"
                                   field="worked_hours"></kendo-chart-series-item>
                           </kendo-chart-series>
                       </kendo-chart>

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 21 Sep 2018, 05:51 AM
Hello Federico,

Make sure you're setting Gap and Spacing as numbers, see sample:
<kendo-chart-series-item type="bar" [gap]="1" [spacing]="0">
</kendo-chart-series-item>


Try different values to get a feel on how they work.

Regards,
T. Tsonev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Federico
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or