const dataValues = [10, 10, 0, 3, 2, 0, 7]; const filteredData = dataValues.map(value => (value === 0 ? null : value)); const pointRadiusValues = dataValues.map((value, index) => { if ( (value > 0) && (dataValues[index - 1] === 0 && dataValues[index + 1] === 0) || (index === dataValues.length - 1 && dataValues[index - 1] === 0 ) || (dataValues[0] > 0 && dataValues[1] === 0 ) ) { return 3; } else..