# Vision Chart - possible to show minor tick labels on logarithmic axis?

**URL:** <https://forum.inductiveautomation.com/t/vision-chart-possible-to-show-minor-tick-labels-on-logarithmic-axis/109651>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting\
**Created:** [August 12, 2025, 4:50pm UTC](https://forum.inductiveautomation.com/t/vision-chart-possible-to-show-minor-tick-labels-on-logarithmic-axis/109651 "2025-08-12T16:50:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [December 19, 2025, 7:40am UTC](https://forum.inductiveautomation.com/t/vision-chart-possible-to-show-minor-tick-labels-on-logarithmic-axis/109651/3 "2025-12-19T07:40:07Z")

</div>

I was able to build a custom Logarithmic Axis that includes labels for all the ticks

**Result:**

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/7/5716ae0fe71d66be5a05370e484a7834de72576b.png)

**Configure Chart extension function script:**

```python
#def configureChart(self, chart):
	from java.lang import Math
	from java.util import ArrayList
	from org.jfree.chart.axis import LogarithmicAxis, NumberTick
	from org.jfree.ui import TextAnchor
	
	class LabelAllLogTicksAxis(LogarithmicAxis):
		def refreshTicksVertical(self, g2, dataArea, edge):
			lowerBound = self.range.lowerBound
			upperBound = self.range.upperBound
			
			ticks = ArrayList()

			# lowerGuard variable added by rpavlicek to cover cases where the lower bound is less than or equal to zero			
			lowerGuard = lowerBound if lowerBound > 0 else 1e-10
			startingDecade = int(Math.floor(Math.log10(lowerGuard)))
			endingDecade = int(Math.ceil(Math.log10(upperBound)))
		
			for decade in xrange(startingDecade, endingDecade):
				base = 10.0 ** decade
				for multiplier in xrange(1, 10):
					value = multiplier * base
					
					# Added to remove a negative label that was appearing below the lower bound
					if value < lowerBound or value > upperBound:
						continue
					
					# https://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/axis/NumberTick.html
					# NumberTick(Number number, String label, TextAnchor textAnchor, TextAnchor rotationAnchor, double angle)
					ticks.add(NumberTick(value, unicode(value), TextAnchor.CENTER_RIGHT, TextAnchor.CENTER_RIGHT, 0.0))
		
			return ticks
	
	plot = chart.plot
	oldLogAxis = plot.rangeAxis
	newLogAxis = LabelAllLogTicksAxis(oldLogAxis.label)
	newLogAxis.range = oldLogAxis.range
	plot.rangeAxis = newLogAxis

```

**Edit:** Added lower guard variable developed by @rpavlicek that covers cases where the lower bound of the chart is less than or equal to zero

---

_[View the full topic](https://forum.inductiveautomation.com/t/vision-chart-possible-to-show-minor-tick-labels-on-logarithmic-axis/109651)._
