Module

DataViz.Layout.Sankey.CSV

Package
purescript-hylograph-layout
Repository
afcondon/purescript-hylograph-layout

DataViz.Layout.Sankey.CSV

CSV parsing utilities for Sankey diagram data. Parses CSV files with source,target,value format.

#parseSankeyCSV Source

parseSankeyCSV :: String -> Array LinkCSVRow

Parse CSV string into array of LinkCSVRow Expected format: "source,target,value" with header row Example: source,target,value A,B,10 B,C,5

#parseLine Source

parseLine :: String -> Maybe LinkCSVRow

Parse a single CSV line into LinkCSVRow