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

How to adjust selected bar height for LineChart in demo project #56

Closed
RainbowInt opened this issue May 13, 2014 · 2 comments
Closed

How to adjust selected bar height for LineChart in demo project #56

RainbowInt opened this issue May 13, 2014 · 2 comments

Comments

@RainbowInt
Copy link

Hi,
This is in regards to the demo project.
By design, when you touch the line chart, a bar appears with a tool tip.
When you touch up, the bar disappears.
How can we control the height of the bar?

@terryworona
Copy link
Collaborator

There is no public method to control the height of the selection bar (it'a automatically scaled to the max height of the chart's bounds).

If you wanted to directly manipulate it's size, check out JBLineChartView line 352

self.verticalSelectionView = [[JBChartVerticalSelectionView alloc] initWithFrame:CGRectMake(0, 0, selectionViewWidth, self.bounds.size.height - self.footerView.frame.size.height)];

@RainbowInt
Copy link
Author

Thanks for the information, Terry.

On May 13, 2014, at 2:54 PM, terryworona notifications@github.com wrote:

There is no public method to control the height or width of the selection bar.

If you wanted to directly manipulate it's size, check out JBLineChartView line 352

self.verticalSelectionView = [[JBChartVerticalSelectionView alloc] initWithFrame:CGRectMake(0, 0, selectionViewWidth, self.bounds.size.height - self.footerView.frame.size.height)];

Reply to this email directly or view it on GitHub.

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

No branches or pull requests

2 participants