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

Labels on axes #53

Closed
18 tasks done
rolyp opened this issue Jan 24, 2019 · 0 comments
Closed
18 tasks done

Labels on axes #53

rolyp opened this issue Jan 24, 2019 · 0 comments

Comments

@rolyp
Copy link
Collaborator

rolyp commented Jan 24, 2019

Bar chart:

  • barGraph library function taking categorical data
  • compute number of y-axis ticks in barGraph, replacing numerical constant 4
  • heuristic saying how often to place a tick on an axis of length n
  • centre ticks for categorical axes
  • "centre" ticks/labels for categorical data
  • numerical labels on y-axis
    • first pass over SVG text elements (SVG text elements #167)
    • hard-code font size to 10pt
    • x-axis function to return offset, rather than caller to assume axis_margin + tickLength

Line chart:

  • lineGraph library function taking numerical data
  • y-axis
  • x-axis should show years
  • only showing 2 rather than 3 years

x-axis formatting:

  • centre text on tick according to text width
  • text below tick according to text height

y-axis formatting:

  • centre text on tick according to text height
  • right-justify based on text width

Still to do:

  • categorical names rather than numerical values for categorical axes
  • x-offset of bar chart incorrect
@rolyp rolyp mentioned this issue Apr 9, 2019
6 tasks
@rolyp rolyp changed the title Labels on axis ticks Labels on axes Apr 14, 2019
@rolyp rolyp closed this as completed Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant