mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
support changing chart data source type
This commit is contained in:
@@ -5,17 +5,20 @@ const allChartTypes = {
|
||||
|
||||
const defaultChartType = allChartTypes.Pie;
|
||||
|
||||
const allChartLegendTypes = {
|
||||
Account: 0,
|
||||
PrimaryCategory: 1,
|
||||
SecondaryCategory: 1
|
||||
const allChartDataTypes = {
|
||||
ExpenseByAccount: 0,
|
||||
ExpenseByPrimaryCategory: 1,
|
||||
ExpenseBySecondaryCategory: 2,
|
||||
IncomeByAccount: 3,
|
||||
IncomeByPrimaryCategory: 4,
|
||||
IncomeBySecondaryCategory: 5
|
||||
};
|
||||
|
||||
const defaultChartLegendType = allChartLegendTypes.SecondaryCategory;
|
||||
const defaultChartDataType = allChartDataTypes.ExpenseBySecondaryCategory;
|
||||
|
||||
export default {
|
||||
allChartTypes: allChartTypes,
|
||||
defaultChartType: defaultChartType,
|
||||
allChartLegendTypes: allChartLegendTypes,
|
||||
defaultChartLegendType: defaultChartLegendType,
|
||||
allChartDataTypes: allChartDataTypes,
|
||||
defaultChartDataType: defaultChartDataType,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user