mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) Fix js error when changing X Axis with chart with no series
Summary: This error only occured for certain charts type. Some chart handled it correctly, others did not. This brings a more general handling of this issue which should work for all charts. Test Plan: New nbrowser test case. Reviewers: jarek Reviewed By: jarek Subscribers: jarek Differential Revision: https://phab.getgrist.com/D3303
This commit is contained in:
parent
5213972d24
commit
0da397ab90
@ -288,7 +288,7 @@ export class ChartView extends Disposable {
|
|||||||
dataOptions.totalFormatter = this._formatterComp.peek();
|
dataOptions.totalFormatter = this._formatterComp.peek();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!options.multiseries) {
|
if (!options.multiseries && series.length) {
|
||||||
plotData = chartFunc(series, options, dataOptions);
|
plotData = chartFunc(series, options, dataOptions);
|
||||||
} else if (series.length > 1) {
|
} else if (series.length > 1) {
|
||||||
// We need to group all series by the first column.
|
// We need to group all series by the first column.
|
||||||
|
Loading…
Reference in New Issue
Block a user