-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VIS: Sankey chart to represent flow visualization #27
Comments
AMCharts example: // Set data
{ "from":'Payment>$500', "to": 'Debit-5ms', "value": 20}, { "from":'Payment>$100', "to": 'Debit-10ms', "value": 60},
]; // Configure data fields // Configure nodes // Configure links |
https://www.anychart.com/buy/ cheap-dev license for startup $49 |
Using a Sankey chart to show dataflow visualizations would be simple and useful. It plays nicely with visualization of flows using something simple correlationIds. It would be simpler to hook up than distributed tracing.
Datamodel
For example, imagine a dataflow of payments - incoming, debit, credit, outgoing. It could show a model where the incoming are broken down by the amount.
{
// stage 1
incoming-$100+, debit-10ms, 1000
incoming-$50-100, debit-5ms, 20
incoming-$0-50, debit-1ms, 20
incoming-$0-50, debit-5ms, 20
incoming-$0-50, debit-10ms, 20
// stage 2
debit-1ms, credit-10ms, 1000
debit-1ms, credit-5ms, 100
debit-10ms, credit-10ms, 100
// stage 3
credit-10ms, end-to-end-10ms-$100, 1000
credit-1ms, end-to-end-10ms-$50, 1000
credit-5ms, end-to-end-5ms-$10, 50
Fields:
Query:
field.extract('.(txnId:)', correlation)
field.extract('.(dddd-dd-dd)', timestamp)
field.extract('.*status: (\w+), stage)
field.extract('.*amount: (\w+), y-value)
Analytic:
analytic.dataflow(correlation, timestamp, stage, y-value)
Raw data:
2020-mar-15 1200:32.31 txn: 123 stage: inbound amount: 1000 some other stuff
2020-mar-15 1200:33.31 txn: 423 stage: inbound amount: 1000 some other stuff
2020-mar-15 1200:33.31 txn: 523 stage: inbound amount: 1000 some other stuff
2020-mar-15 1200:35.31 txn: 123 stage: debit amount: 1000 some other stuff
2020-mar-15 1200:35.31 txn: 423 stage: debit amount: 1000 some other stuff
2020-mar-15 1200:35.31 txn: 523 stage: debit amount: 1000 some other stuff
2020-mar-15 1200:35.31 txn: 123 stage: credit amount: 1000 some other stuff
2020-mar-15 1200:35.31 txn: 423 stage: credit amount: 1000 some other stuff
2020-mar-15 1200:35.31 txn: 523 stage: credit amount: 1000 some other stuff
2020-mar-15 1200:35.31 txn: 123 stage: complete amount: 1000 some other stuff
2020-mar-15 1200:35.31 txn: 423 stage: complete amount: 1000 some other stuff
2020-mar-15 1200:35.31 txn: 523 stage: complete amount: 1000 some other stuff
Highcharts jsfiddle:
https://jsfiddle.net/5anhsxku/
Google Charts fiddle:
http://jsfiddle.net/d8znLj4f/
Splunk developer view:
https://docs.splunk.com/Documentation/SankeyDiagram/1.3.0/SankeyDiagramViz/SankeyIntro
https://developers.google.com/chart/interactive/docs/gallery/sankey
The text was updated successfully, but these errors were encountered: