Plot line with nominal X axis values (--data-field-x-nominal)
#308
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

This PR adds support to
csvtk plot lineto plot graphs where X is a nominal value. This can be done by using the flag--data-field-x-nominal.All unique X values are collected, sorted and assigned an index. The corresponding value is also shown in the graph marker instead of the index. This opens up the ability to plot graphs for datasets, where X is a date, as long as it's formatted in a way that is sortable (e.g.
YYYY-MM-DD HH:MM:SS). Related to this issue #179.Example:
File
example.csv:Running command:
Produces:
