Currently, I have a straightforward JavaScript function in which I iterate over a series. After that, I add a value to an array and then assign it to an object. This process is part of my work on creating a c3 combination chart.
However, I encountered an error stating "message": "Uncaught SyntaxError: Invalid left-hand side in assignment",.
Here is the JavaScript Function:
//BEGIN COMBINATION SECTION-------------------------------------------------------------------------------------------------
this._initialize_settings_Combination = function () {
if (!this.isCombinationChart()) return;
this._resultSettingsJ.data.types = {};
var _types = [];
var _series = this.Serieses();
for (var _count = 1; _count < this.seriesCount; _count++) {
debugger;
_types.push(_series(_count).chartType);
this._resultSettingsJ.data.types.dataSeries + '_count' = _types[_count].value;
}
}
I suspect that the error stems from the way I assigned the object to the array value, though I can't be certain. Despite extensive searching for a solution, I haven't been able to find one. While I understand that this is a simple error, I would greatly appreciate any assistance or insights provided by someone knowledgeable in this area.