This is from d3fc.....module.. What is the' row =>' ? Is this d3 function?? but i can't find meaning of this.. in d3 offical ....d3fc offical.....site...
const lineSeries = fc.seriesSvgLine()
.mainValue(d => d.close)
.crossValue(d => d.date);
const chart = fc.chartSvgCartesian(
d3.scaleTime(),
d3.scaleLinear()
)
.yOrient('left')
.plotArea(lineSeries);
const xExtent = fc.extentDate()
.accessors([d => d.date]);
const yExtent = fc.extentLinear()
.accessors([d => d.high, d => d.low]);
const parseDate = d3.timeParse("%d-%b-%y");
d3.csv('data.csv',
row => ({
open: row.Open,
close: row.Close,
high: row.High,
low: row.Low,
date: parseDate(row.Date)
})).then(data => {
chart.xDomain(xExtent(data))
.yDomain(yExtent(data));
d3.select('#chart-element')
.datum(data)
.call(chart);
});
'row =>' is something like 'function(d)'? 'row' is 'd' 'function' is '=>'?