GrammarSpecException class final
Raised when a PlotSpec cannot be lowered onto the config surface.
- Implemented types
Constructors
- GrammarSpecException(GrammarDiagnosticCode code, String message)
-
Creates a diagnostic with an explicit
codeandmessage.const - GrammarSpecException.axisOptionOnRadialSpec(String option)
-
A Cartesian axis/grid option was set on a radial spec.
factory
- GrammarSpecException.concentricConfigOnRinglessDonut(String markId)
-
A
ConcentricDonutConfigwas set on a donut geom with noringchannel.factory - GrammarSpecException.conflictingAxisMode(String detail)
-
An axis combined a time or log scale with a category axis.
factory
- GrammarSpecException.conflictingConcentricCenter(String markId)
-
A donut geom set both
concentricand thecentershorthand.factory - GrammarSpecException.duplicateAxisId(String axisId)
-
Two declared axes resolved to the same id.
factory
- GrammarSpecException.duplicateMarkId(String id)
-
Two marks resolved to the same id.
factory
- GrammarSpecException.duplicatePointKey(String markId, String key)
-
A Cartesian geometry repeated a
pointKeywithin a single series.factory - GrammarSpecException.duplicateRadialCategory(String category)
-
A radial geom repeated a category within a single series or ring.
factory
- GrammarSpecException.emptyData()
-
The spec declared no rows.
factory
- GrammarSpecException.emptyFacetValues()
-
Faceting partitioned zero rows into zero panels.
factory
- GrammarSpecException.emptyMarks()
-
The spec declared no marks.
factory
- GrammarSpecException.emptyRadialCategories(String markId)
-
A radial geom produced no category with a visible label.
factory
- GrammarSpecException.facetColumnsNotPositive(int columns)
-
A facet declared a non-positive
columnscount.factory - GrammarSpecException.facetedRadialUnsupported(String markId)
-
A radial spec also requested faceting.
factory
- GrammarSpecException.facetedSpecNotLowerable()
-
A faceted spec reached a single-panel path.
factory
-
A multi-y-axis spec was faceted under a shared-Y scale mode.
factory
- GrammarSpecException.facetPanelCapExceeded(int count, int cap)
-
Faceting produced more panels than the cap allows.
factory
- GrammarSpecException.incompletePolarInterval(String markId)
-
A polar column geom supplied only one of the two interval bounds.
factory
- GrammarSpecException.incompleteRangeAreaInterval(String markId, int rowIndex)
-
A range-area row supplied one bound and not the other.
factory
- GrammarSpecException.invalidCandlestickRow(String markId, int rowIndex, String reason)
-
A candlestick row violated the OHLC invariants or ordering.
factory
-
GrammarSpecException.invalidConcentricComposition(String detail, {Iterable<
String> ringIds = const <String>[], bool explicitRingIds = false}) -
A concentric donut composition cannot lay its rings out.
factory
- GrammarSpecException.invalidHeatmapConfiguration(String markId, String reason)
-
A Heatmap mark declared invalid cell or label presentation.
factory
- GrammarSpecException.invalidHeatmapRow(String markId, int rowIndex, String reason)
-
A Heatmap row could not produce one valid cell.
factory
- GrammarSpecException.invalidPolarComposition(String detail)
-
One polar pane's contract was broken — by its
.polarConfig(...), or by the geomPolar marks that share it.factory - GrammarSpecException.invalidRadarComposition(String detail)
-
The shared Radar category domain, scale, or pane is invalid.
factory
- GrammarSpecException.invalidRangeAreaRow(String markId, int rowIndex, String reason)
-
A range-area row broke the band's ordering or interval invariants.
factory
- GrammarSpecException.invalidRangeAreaStyle(String markId, String detail)
-
A range-area geom set a styling argument the band refuses.
factory
- GrammarSpecException.invalidTrendWindow(String markId)
-
A moving-average trend was declared without a positive window size.
factory
- GrammarSpecException.missingChannelEncoding(String markId, String channel, String remedy)
-
A channel was supplied without the encoding it needs.
factory
- GrammarSpecException.missingEncoding(String verb, String channel)
-
A facade geom was built without an x or y encoding to inherit.
factory
-
GrammarSpecException.mixedCoordinateSystems(String radialMarkId, Iterable<
String> otherMarkIds) -
A radial geom was combined with a non-radial mark.
factory
-
GrammarSpecException.multipleRadialGeoms(Iterable<
String> radialMarkIds) -
A spec declared more than one radial geom outside the polar family.
factory
- GrammarSpecException.nonPositiveLogValue(String markId, num value)
-
A mark fed a non-positive value to a log axis.
factory
- GrammarSpecException.notFaceted()
-
buildFaceted()was called on a non-faceted spec.factory - GrammarSpecException.orphanChannelEncoding(String markId, String encoding, String channel)
-
An encoding was supplied with no channel to drive it.
factory
-
GrammarSpecException.partialRingIds(String markId, Iterable<
String> namedKeys, Iterable<String> unnamedKeys) -
A
ringIdsmap named some of a composition's rings but not all of them.factory -
GrammarSpecException.perRingOverrideOnRinglessDonut(String markId, String parameter, Iterable<
String> keys, {String singleDonutParameter = 'dataLabels:'}) -
A per-ring override map was set on a donut geom with no
ringchannel.factory - GrammarSpecException.polarConfigOnNonPolarSpec(String markId)
-
.polarConfig(...)was set on a spec that holds no polar column geom.factory - GrammarSpecException.radarConfigOnNonRadarSpec(String markId)
-
.radarConfig(...)was set on a spec that holds no Radar geom.factory - GrammarSpecException.unboundAxis(String axisId)
-
A declared axis that no mark measures against.
factory
-
GrammarSpecException.unknownAxisId(String markId, String axisId, Iterable<
String> known) -
A mark bound to an unknown axis id.
factory
-
GrammarSpecException.unknownRingKey(String markId, String parameter, Iterable<
String> unknownKeys, Iterable<String> ringKeys) -
A per-ring override map named a ring the data never produces.
factory
-
GrammarSpecException.unknownTrendSource(String sourceMarkId, Iterable<
String> known) -
A trend named a source that is not a geometry mark.
factory
- GrammarSpecException.unsupportedChannelScale(String markId, String channel, String requested, String native)
-
A channel asked for a scale the render pipeline does not implement.
factory
-
GrammarSpecException.unsupportedHeatmapComposition(Iterable<
String> heatmapIds, Iterable<String> otherGeometryIds) -
Heatmap Phase 1 received an unsupported series composition.
factory
- GrammarSpecException.unsupportedTransposition(String markId)
-
transposed: truecombined with a geometry that cannot transpose.factory
Properties
- code → GrammarDiagnosticCode
-
The machine-readable diagnostic.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The human-readable explanation, including the remedy.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited