Commit bfaa4b25 authored by Alexander.Trofimov's avatar Alexander.Trofimov

add definition of sparklines

parent 30b64e72
...@@ -921,6 +921,21 @@ ...@@ -921,6 +921,21 @@
Percent: 4, Percent: 4,
Percentile: 5 Percentile: 5
}; };
var ESparklineType = {
Line: 0,
Column: 1,
Stacked: 2
};
var EDispBlanksAs = {
Span: 0,
Gap: 1,
Zero: 2
};
var SparklineAxisMinMax = {
Individual: 0,
Group: 1,
Custom: 2
};
var DocumentPageSize = new function() { var DocumentPageSize = new function() {
this.oSizes = [ this.oSizes = [
...@@ -7823,6 +7838,9 @@ ...@@ -7823,6 +7838,9 @@
window["Asc"].EFontScheme = EFontScheme; window["Asc"].EFontScheme = EFontScheme;
window["Asc"].EIconSetType = EIconSetType; window["Asc"].EIconSetType = EIconSetType;
window["Asc"].ECfType = ECfType; window["Asc"].ECfType = ECfType;
window["Asc"].ESparklineType = ESparklineType;
window["Asc"].EDispBlanksAs = EDispBlanksAs;
window["Asc"].SparklineAxisMinMax = SparklineAxisMinMax;
window["Asc"].CTableStyles = CTableStyles; window["Asc"].CTableStyles = CTableStyles;
window["Asc"].CTableStyle = CTableStyle; window["Asc"].CTableStyle = CTableStyle;
......
...@@ -4406,6 +4406,46 @@ CellArea.prototype = { ...@@ -4406,6 +4406,46 @@ CellArea.prototype = {
} }
}; };
function sparklineGroups() {
this.arrSparklineGroup = [];
}
function sparklineGroup() {
// attributes
this.manualMax = undefined;
this.manualMin = undefined;
this.lineWeight = 0.75;
this.type = Asc.ESparklineType.Line;
this.dateAxis = false;
this.displayEmptyCellsAs = Asc.EDispBlanksAs.Zero;
this.markers = false;
this.high = false;
this.low = false;
this.first = false;
this.last = false;
this.negative = false;
this.displayXAxis = false;
this.displayHidden = false;
this.minAxisType = Asc.SparklineAxisMinMax.Individual;
this.maxAxisType = Asc.SparklineAxisMinMax.Individual;
this.rightToLeft = false;
// elements
this.colorSeries = null; // ToDo добавить значения по умолчанию
this.colorNegative = null;
this.colorAxis = null;
this.colorMarkers = null;
this.colorFirst = null;
this.colorLast = null;
this.colorHigh = null;
this.colorLow = null;
this.arrSparklines = [];
}
function sparkline() {
this.sqref = '??'; // ToDo добавить значение по умолчанию
this.f = '??';
}
// For Auto Filters // For Auto Filters
/** @constructor */ /** @constructor */
function TablePart(handlers) { function TablePart(handlers) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment