code: function (d, chart, series) {
              var stroke = 0;
              if (series.c !== null && series.c !== undefined) {
                  stroke = d.stroke;
              } else {
                  stroke = chart.getColor(d.aggField.slice(-1)[0]).stroke;
              }
              return stroke;
          }
docs: Calculate the stroke coloring for series