ResponsiveMaxTheme
Type classSince 5.22.0
A theme that fits charts to small spaces by adapting them, hiding parts only as the last step. It turns on the settings that fit labels and legends to the room they have:
autoLabelson axis renderers: labels spaced to fit, and hidden where they would be cut off or overlap another axis's labels.keepInViewon axis labels of a chart 400 px or smaller across the axis: a category or date period partly in view keeps its label in the part that is.autoLabelson pie series: the pie moves aside or gets smaller, and its labels wrap, are shortened or are hidden, smallest slices first.autoLabelson other series: bullet labels that would overlap or be cut off are hidden. Drawings on a stock chart are left alone.autoFiton legends: smaller, then scrolling, with long names shortened.autoHideon chart scrollbars: a vertical one goes on a chart 400 px wide or narrower, a horizontal one on a chart 300 px tall or lower (a stock chart is measured whole, not by panel); pinching zooms instead.
Below 400 px, text is drawn at 85% of its size, and axis labels, legend items and word cloud words get less padding; scrollbars get smaller margins.
Charts keep their padding. Funnel, pyramid and pictorial labels stay unless the chart is tiny, and radar labels stay outside the circle.
Labels added in code with their own font size, such as a title, are drawn smaller on charts under 600 × 450 px instead, down to three quarters of their size; a label in the middle of a donut is fitted to the hole by the pie's autoLabels. A label whose own scale is set is left alone.
Settings set on an element in code win over the theme, as with any theme:
autoLabels: false on a series or renderer turns that part off.
More info: ResponsiveMax theme
Sources
This information about ResponsiveMaxTheme is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
ResponsiveMaxTheme extends ResponsiveBaseTheme.
ResponsiveMaxTheme is not extended by any other symbol.
Properties
36 inherited items
heightLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the height is at mostL(600 pixels).heightMStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the height is at mostM(400 pixels).heightSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the height is at mostS(300 pixels).heightXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the height is at mostXL(800 pixels).heightXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the height is at mostXS(200 pixels).heightXXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the height is at mostXXL(1000 pixels).heightXXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the height is at mostXXS(100 pixels).isLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen both the width and the height are at mostL(600 pixels).isMStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen both the width and the height are at mostM(400 pixels).isSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen both the width and the height are at mostS(300 pixels).isXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen both the width and the height are at mostXL(800 pixels).isXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen both the width and the height are at mostXS(200 pixels).isXXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen both the width and the height are at mostXXL(1000 pixels).isXXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen both the width and the height are at mostXXS(100 pixels).LStaticType
numberInherited fromResponsiveBaseThemeBreakpoint of 600 pixels.
MStaticType
numberInherited fromResponsiveBaseThemeBreakpoint of 400 pixels.
maybeLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width or the height is at mostL(600 pixels).maybeMStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width or the height is at mostM(400 pixels).maybeSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width or the height is at mostS(300 pixels).maybeXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width or the height is at mostXL(800 pixels).maybeXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width or the height is at mostXS(200 pixels).maybeXXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width or the height is at mostXXL(1000 pixels).maybeXXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width or the height is at mostXXS(100 pixels).responsiveRulesType
IResponsiveRule[]Default[]Inherited fromResponsiveBaseThemeRules added to the theme.
SStaticType
numberInherited fromResponsiveBaseThemeBreakpoint of 300 pixels.
widthLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width is at mostL(600 pixels).widthMStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width is at mostM(400 pixels).widthSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width is at mostS(300 pixels).widthXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width is at mostXL(800 pixels).widthXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width is at mostXS(200 pixels).widthXXLStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width is at mostXXL(1000 pixels).widthXXSStaticType (width:
number, height:number) =>booleanInherited fromResponsiveBaseThemetruewhen the width is at mostXXS(100 pixels).XLStaticType
numberInherited fromResponsiveBaseThemeBreakpoint of 800 pixels.
XSStaticType
numberInherited fromResponsiveBaseThemeBreakpoint of 200 pixels.
XXLStaticType
numberInherited fromResponsiveBaseThemeBreakpoint of 1000 pixels.
XXSStaticType
numberInherited fromResponsiveBaseThemeBreakpoint of 100 pixels.
Methods
addRule(rule:IResponsiveRule)Returns
IResponsiveRuleAdds a responsive rule and returns it. It applies at once if it is relevant.
constructor(root:Root,
isReal:boolean)Returns
ResponsiveMaxThemedispose()Returns
voidremoveRule(rule:IResponsiveRule)Returns
voidRemoves a responsive rule from the theme, taking back its settings if it applies.
4 inherited items
new(root:Root)StaticReturns
InstanceTypeInherited fromThemeUse this method to create an instance of this class.
More info: Getting started: new element syntax
newEmpty(root:Root)StaticReturns
InstanceTypeInherited fromResponsiveBaseThemeCreates the theme without its built-in rules, for rules of your own.
rule(themeClass:K,
themeTags:Array)Returns
TemplateInherited fromThemeReturns the rule for a class and theme tags, as a
Template. Settings set on it go to every element of that class (or a class extending it) that has all of these tags. The same class and tags return the same rule.More info: Themes
ruleRaw(themeClass:string,
themeTags:Array)Returns
TemplateInherited fromThemeSame as
rule(), but takes any class name, without type checks.More info: Themes
Events
ResponsiveMaxTheme does not have any events.