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

Move both X and Y Axis Tick-Mark Labeling to Outside of Graph #325

Closed
matttproud opened this Issue Jun 29, 2013 · 4 comments

Comments

Projects
None yet
8 participants
@matttproud
Copy link
Member

matttproud commented Jun 29, 2013

Per http://code.shutterstock.com/rickshaw/tutorial/introduction.html with the Y-Axis Too section, we should move the axis labeling to outside of the graph. This will prevent series from being rendered over both the tick mark values.

var y_axis = new Rickshaw.Graph.Axis.Y( {
        graph: graph,
        orientation: 'left',
        tickFormat: Rickshaw.Fixtures.Number.formatKMBT,
        element: document.getElementById('y_axis'),
} );

Note the external element definition.

@nsauro

This comment has been minimized.

Copy link

nsauro commented Oct 3, 2017

So, I started looking at this, but..it seems like this might already be finished?

Looks like a yaxis element is defined: https://github.com/prometheus/prometheus/blob/master/web/ui/static/js/graph.js#L551-L554

Then referenced:
https://github.com/prometheus/prometheus/blob/master/web/ui/static/js/graph.js#L109

Then looks like the y axis utilizes this:
https://github.com/prometheus/prometheus/blob/master/web/ui/static/js/graph.js#L621-L626
specifically L625.

I think x-axis is fine as is, or am I mistaken?

Disclaimer: I'm not super versed in JS, so pardon any bold claims :)

@gouthamve Tagged you since you were the last person to touch this.

simonpasquier pushed a commit to simonpasquier/prometheus that referenced this issue Oct 12, 2017

Merge pull request prometheus#325 from commarla/master
small typo on configuration page
@grobie

This comment has been minimized.

Copy link
Member

grobie commented Nov 12, 2017

Four year old issue, no one has complained about this. Let's just close @juliusv?

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Nov 12, 2017

Yeah, I think so too. Closing.

@juliusv juliusv closed this Nov 12, 2017

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 23, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.