This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts.git

commit a4db0d4f7f87e73ac20a322ee586f9ac5e8618ba
Merge: 75dd430d7 0e862ce71
Author: Wenli Zhang <[email protected]>
AuthorDate: Tue May 21 16:42:09 2024 +0800

    Merge pull request #17078 from jiawulin001/issue#17077
    
    feat: barSeries.startValue added

 src/chart/bar/BarSeries.ts      |   2 +
 src/coord/axisCommonTypes.ts    |   1 +
 src/coord/scaleRawExtentInfo.ts |   6 +-
 src/layout/barGrid.ts           |  19 ++--
 src/layout/barPolar.ts          |   6 +-
 test/bar-startValue.html        | 225 ++++++++++++++++++++++++++++++++++++++++
 6 files changed, 251 insertions(+), 8 deletions(-)

diff --cc src/coord/scaleRawExtentInfo.ts
index 52f6b8d06,6a0541306..78c29cc0c
--- a/src/coord/scaleRawExtentInfo.ts
+++ b/src/coord/scaleRawExtentInfo.ts
@@@ -98,9 -98,13 +98,13 @@@ export class ScaleRawExtentInfo 
          const isOrdinal = this._isOrdinal = scale.type === 'ordinal';
          this._needCrossZero = scale.type === 'interval' && 
model.getNeedCrossZero && model.getNeedCrossZero();
  
-         const modelMinRaw = this._modelMinRaw = model.get('min', true);
+         let axisMinValue = model.get('min', true);
+         if (axisMinValue == null) {
+             axisMinValue = model.get('startValue', true);
+         }
+         const modelMinRaw = this._modelMinRaw = axisMinValue;
          if (isFunction(modelMinRaw)) {
 -            // This callback alway provide users the full data extent (before 
data filtered).
 +            // This callback always provides users the full data extent 
(before data is filtered).
              this._modelMinNum = parseAxisModelMinMax(scale, modelMinRaw({
                  min: dataExtent[0],
                  max: dataExtent[1]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to