Movatterモバイル変換


[0]ホーム

URL:


Components / Charts / API / CategoryBaseUnit
New to Kendo UI for Vue? Start a free 30-day trial

CategoryBaseUnit

Updated over 6 months ago

ThebaseUnit type of the category axis.

jsx
<template><Chart><ChartCategoryAxis><ChartCategoryAxisItem:base-unit="baseUnit"/></ChartCategoryAxis><ChartSeries><ChartSeriesItem:category-field="category":data-items="dataItems"/></ChartSeries></Chart></template><script>import { Chart, ChartCategoryAxis, ChartCategoryAxisItem, ChartSeries, ChartSeriesItem} from '@progress/kendo-vue-charts';export default {  components: {      Chart,      ChartCategoryAxis,      ChartCategoryAxisItem,      ChartSeries,      ChartSeriesItem  },  data () {      return {         baseUnit: "months",         dataItems: [             { category: new Date(2000, 0, 1), value: 1 },             { category: new Date(2001, 0, 1), value: 1}         ]      };  }}</script>

type CategoryBaseUnit = "milliseconds" | "seconds" | "minutes" | "hours" | "days" | "weeks" | "months" | "years" | "auto" | "fit";

Not finding the help you need?
Contact Support

[8]ページ先頭

©2009-2025 Movatter.jp