Skip to content

Commit

Permalink
For #62819
Browse files Browse the repository at this point in the history
Add constants for Simple Types.
  • Loading branch information
Dmitriy Aleksandrov committed Aug 30, 2023
1 parent 6fdbb04 commit 3c49bfc
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions common/SerializeChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,76 @@ var TRENDLINE_TYPE_MOVING_AVG = 3;
var TRENDLINE_TYPE_POLY = 4;
var TRENDLINE_TYPE_POWER = 5;

var SERIES_LAYOUT_BOX_WHISKER = 0;
var SERIES_LAYOUT_CLUSTERED_COLUMN = 1;
var SERIES_LAYOUT_FUNNEL = 2;
var SERIES_LAYOUT_PARETO_LINE = 3;
var SERIES_LAYOUT_REGION_MAP = 4;
var SERIES_LAYOUT_SUNBURST = 5;
var SERIES_LAYOUT_TREEMAP = 6;
var SERIES_LAYOUT_WATERFALL = 7;

var DATA_LABEL_POS_BEST_FIT = 0;
var DATA_LABEL_POS_B = 1;
var DATA_LABEL_POS_CTR = 2;
var DATA_LABEL_POS_IN_BASE = 3;
var DATA_LABEL_POS_IN_END = 4;
var DATA_LABEL_POS_L = 5;
var DATA_LABEL_POS_OUT_END = 6;
var DATA_LABEL_POS_R = 7;
var DATA_LABEL_POS_T = 8;

var PARENT_LABEL_LAYOUT_NONE = 0;
var PARENT_LABEL_LAYOUT_BANNER = 1;
var PARENT_LABEL_LAYOUT_OVERLAPPING = 2;

var REGION_LABEL_LAYOUT_NONE = 0;
var REGION_LABEL_LAYOUT_BEST_FIT_ONLY = 1;
var REGION_LABEL_LAYOUT_SHOW_ALL = 2;

var INTERVAL_CLOSED_SIDE_L = 0;
var INTERVAL_CLOSED_SIDE_R = 1;

var AXIS_UNIT_HUNDREDS = 0;
var AXIS_UNIT_THOUSANDS = 1;
var AXIS_UNIT_TEN_THOUSANDS = 2;
var AXIS_UNIT_HUNDRED_THOUSANDS = 3;
var AXIS_UNIT_MILLIONS = 4;
var AXIS_UNIT_TEN_MILLIONS = 5;
var AXIS_UNIT_HUNDRED_MILLIONS = 6;
var AXIS_UNIT_BILLIONS = 7;
var AXIS_UNIT_TRILLIONS = 8;
var AXIS_UNIT_PERCENTAGE = 9;

var SIDE_POS_L = 0;
var SIDE_POS_T = 1;
var SIDE_POS_R = 2;
var SIDE_POS_B = 3;

var POS_ALIGN_MIN = 0;
var POS_ALIGN_CTR = 1;
var POS_ALIGN_MAX = 2;

var TICK_MARKS_TYPE_IN = 0;
var TICK_MARKS_TYPE_OUT = 1;
var TICK_MARKS_TYPE_CROSS = 2;
var TICK_MARKS_TYPE_NONE = 3;

var QUARTILE_METHOD_INCLUSIVE = 0;
var QUARTILE_METHOD_EXCLUSIVE = 1;

var STRING_DIMENSION_TYPE_CAT = 0;
var STRING_DIMENSION_TYPE_COLOR_STR = 1;

var NUMERIC_DIMENSION_TYPE_VAL = 0;
var NUMERIC_DIMENSION_TYPE_X = 1;
var NUMERIC_DIMENSION_TYPE_Y = 2;
var NUMERIC_DIMENSION_TYPE_SIZE = 3;
var NUMERIC_DIMENSION_TYPE_COLOR_VAL = 4;

var FORMULA_DIRECTION_COL = 0;
var FORMULA_DIRECTION_ROW = 1;

function BinaryChartWriter(memory) {
this.memory = memory;
this.bs = new AscCommon.BinaryCommonWriter(this.memory);
Expand Down

0 comments on commit 3c49bfc

Please sign in to comment.