@oliasoft-open-source/charts-library 4.0.3 → 4.0.4-beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -25149,11 +25149,18 @@ const generateLineChartDatasets = (datasets, state, options, { label }) => {
25149
25149
  const filteredData = data.filter(Boolean) || [];
25150
25150
  const isSinglePoint = (filteredData == null ? void 0 : filteredData.length) === 1;
25151
25151
  let pointState, lineState;
25152
- if (hasCustomOpt) {
25153
- pointState = customShowPoints !== void 0 ? customShowPoints : !customShowLine;
25154
- lineState = customShowLine !== void 0 ? customShowLine : !customShowPoints;
25152
+ if (customShowPoints !== void 0) {
25153
+ pointState = customShowPoints;
25154
+ } else if (customShowLine === false) {
25155
+ pointState = true;
25155
25156
  } else {
25156
25157
  pointState = pointsEnabled || isSinglePoint;
25158
+ }
25159
+ if (customShowLine !== void 0) {
25160
+ lineState = customShowLine;
25161
+ } else if (customShowPoints === false) {
25162
+ lineState = true;
25163
+ } else {
25157
25164
  lineState = lineEnabled;
25158
25165
  }
25159
25166
  const linePointRadius = parseFloat(pointRadiusProp) || DEFAULT_POINT_RADIUS;