文件操作 - module.tsx
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/public/app/plugins/panel/piechart/module.tsx
编辑文件内容
import { PanelPlugin } from '@grafana/data'; import { PieChartPanel } from './PieChartPanel'; import { PieChartOptions } from './types'; import { addStandardDataReduceOptions } from '../stat/types'; import { PieChartType } from '@grafana/ui'; export const plugin = new PanelPlugin<PieChartOptions>(PieChartPanel).setPanelOptions(builder => { addStandardDataReduceOptions(builder, false); builder .addRadio({ name: 'Piechart type', description: 'How the piechart should be rendered', path: 'pieType', settings: { options: [ { value: PieChartType.PIE, label: 'Pie' }, { value: PieChartType.DONUT, label: 'Donut' }, ], }, defaultValue: PieChartType.PIE, }) .addNumberInput({ name: 'Width', description: 'Width of the piechart outline', path: 'strokeWidth', defaultValue: 1, }); });
修改文件时间
将文件时间修改为当前时间的前一年
删除文件