Skip to content

Commit

Permalink
Code comment editing only
Browse files Browse the repository at this point in the history
  • Loading branch information
rosco54 committed Feb 20, 2024
1 parent 1ca94a5 commit 24e47c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/modules/Scales.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,10 @@ export default class Scales {
let unassignedYAxisIndices = []
// here, we loop through the yaxis array and find the item which has "seriesName" property
cnf.yaxis.forEach((yaxe, yi) => {
// Allow seriesName to be either a string (for backward compatibility)
// or an array of strings so that multiple series can reference the same
// y-axis. Feature request #4237
// Allow seriesName to be either a string (for backward compatibility),
// in which case, handle multiple yaxes referencing the same series.
// or an array of strings so that a yaxis can reference multiple series.
// Feature request #4237
if (yaxe.seriesName) {
let seriesNames = []
if (Array.isArray(yaxe.seriesName)) {
Expand All @@ -567,8 +568,7 @@ export default class Scales {
axisSeriesMap[yi] = []
seriesNames.forEach((name) => {
cnf.series.forEach((s, si) => {
// if seriesName matches and that series is not collapsed, we use
// that scale.
// if seriesName matches we use that scale.
if (s.name === name) {
axisSeriesMap[yi].push(si)
let remove = unassignedSeriesIndices.indexOf(si)
Expand Down Expand Up @@ -632,7 +632,7 @@ export default class Scales {
// 1: [1,2,3,4]
// If the chart is stacked, it can be assumed that any axis with multiple
// series is stacked.
//

// First things first, convert the old to the new.
let emptyAxes = []
axisSeriesMap.forEach((axisSeries, ai) => {
Expand Down

0 comments on commit 24e47c5

Please sign in to comment.