我正试图将剑道角度图并排放置,但它们仍在堆叠。我正在使用bootstrap col-md-6并尝试过其他样式,但是kendo-chart元素并不尊重任何东西,它们不断占据整行和堆叠。删除style =“display:inline-block;”仍然无法正常工作。这是我在html中得到的:
<div class="col-md-12">
<div class="col-md-6" style="display:inline-block;">
<kendo-chart [categoryAxis]="{ categories: categories }">
<kendo-chart-title text="Gross domestic product growth /GDP annual %/"></kendo-chart-title>
<kendo-chart-legend position="bottom" orientation="horizontal"></kendo-chart-legend>
<kendo-chart-tooltip format="{0}%"></kendo-chart-tooltip>
<kendo-chart-series>
<kendo-chart-series-item *ngFor="let item of series"
type="line" [data]="item.data" [name]="item.name">
</kendo-chart-series-item>
</kendo-chart-series>
</kendo-chart>
</div>
<div class="col-md-6" style="display:inline-block;">
<kendo-chart>
<kendo-chart-value-axis>
<kendo-chart-value-axis-item [title]="{ text: 'Miles' }"
[min]="0" [max]="100">
</kendo-chart-value-axis-item>
</kendo-chart-value-axis>
<kendo-chart-category-axis>
<kendo-chart-category-axis-item [categories]="categories2">
</kendo-chart-category-axis-item>
</kendo-chart-category-axis>
<kendo-chart-series>
<kendo-chart-series-item [data]="series2" type="line">
</kendo-chart-series-item>
</kendo-chart-series>
</kendo-chart>
</div>
</div>
答案 0 :(得分:1)