Skip to content

Conversation

@nkyllonen
Copy link
Collaborator

No description provided.

Comment on lines 72 to 80
<%!-- X-axis labels --%>
<.text
:for={date <- scale_values(@x_axis, ticks: 5)}
x={@x_axis[date]}
y={below_graph(@dimensions)}
dominant-baseline="hanging"
text-anchor="middle"
>
{Calendar.strftime(date, "%-m/%-d")}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still need to loop with a :for in order to render each different date label... so maybe we don't bother with our own text component since it's essentially the thinnest of wrappers around the SVG text element?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The helper library level can have an "x_label" component similar to what we have in Plox now that builds in some of these values to make it easier to plug-n-play?

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.

2 participants