Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
XChart
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Brady James Garvin
XChart
Commits
0e3e5b7c
Commit
0e3e5b7c
authored
11 years ago
by
Tim Molter
Browse files
Options
Downloads
Patches
Plain Diff
fix for decade axis tick location missing values
parent
ea153909
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xchart/src/main/java/com/xeiam/xchart/internal/chartpart/AxisTickLogarithmicCalculator.java
+2
-2
2 additions, 2 deletions
...art/internal/chartpart/AxisTickLogarithmicCalculator.java
with
2 additions
and
2 deletions
xchart/src/main/java/com/xeiam/xchart/internal/chartpart/AxisTickLogarithmicCalculator.java
+
2
−
2
View file @
0e3e5b7c
...
...
@@ -54,7 +54,7 @@ public class AxisTickLogarithmicCalculator extends AxisTickCalculator {
}
// tick space - a percentage of the working space available for ticks
int
tickSpace
=
(
int
)(
styleManager
.
getAxisTickSpaceRatio
()
*
workingSpace
);
// in plot space
int
tickSpace
=
(
int
)
(
styleManager
.
getAxisTickSpaceRatio
()
*
workingSpace
);
// in plot space
// where the tick should begin in the working space in pixels
int
margin
=
Utils
.
getTickStartOffset
(
workingSpace
,
tickSpace
);
// in plot space double gridStep = getGridStepForDecimal(tickSpace);
...
...
@@ -109,7 +109,7 @@ public class AxisTickLogarithmicCalculator extends AxisTickCalculator {
}
// only add labels for the decades
if
(
Math
.
log10
(
j
)
%
1
==
0.0
)
{
if
(
Math
.
abs
(
Math
.
log10
(
j
)
%
1
)
<
0.0
0000001
)
{
tickLabels
.
add
(
numberFormatter
.
formatNumber
(
j
));
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment