Skip to content
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

Display multiple series with different markers #2

Closed
wants to merge 3 commits into from
Closed

Display multiple series with different markers #2

wants to merge 3 commits into from

Conversation

rf-
Copy link

@rf- rf- commented May 24, 2012

This commit adds the ability to provide multiple series in the format:

  >> series = [[0, 3.4, 5.9], [1, 2.5, 4.3], [2, 5.2, 3.5]]

The given series will draw the following chart:

  >> puts AsciiCharts::Cartesian.new(series, :markers => ['X', '%']).draw

  6.0| %
  5.5|
  5.0|         X
  4.5|     %
  4.0|
  3.5| X       %
  3.0|
  2.5|     X
  2.0|
  1.5|
  1.0|
  0.5|
  0.0+------------
       0   1   2

rf- added 3 commits May 24, 2012 11:06
This commit adds the ability to provide multiple series in the format:

  >> series = [[0, 3.4, 5.9], [1, 2.5, 4.3], [2, 5.2, 3.5]]

The given series will draw the following chart:

  >> puts AsciiCharts::Cartesian.new(series, :markers => ['X', '%']).draw

  6.0| %
  5.5|
  5.0|         X
  4.5|     %
  4.0|
  3.5| X       %
  3.0|
  2.5|     X
  2.0|
  1.5|
  1.0|
  0.5|
  0.0+------------
       0   1   2

This feature is currently not compatible with the :bar option.
szarski added a commit to szarski/ascii_charts that referenced this pull request Jun 21, 2015
@rf- rf- closed this Sep 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant