@@ -244,7 +244,10 @@ export default (sdk, chart) => {
244244 }
245245 return chart . getConvertedValue ( y ) // TODO Pass { dimensionId: context.id } when multiple contexts with different units
246246 } ,
247- makeYTicker : ( ) => numericTicker ,
247+ makeYTicker :
248+ ( options = { } ) =>
249+ ( a , b , pixels , opts , dygraph , vals ) =>
250+ numericTicker ( a , b , pixels , opts , dygraph , vals , options ) ,
248251 highlightCircleSize : 4 ,
249252 }
250253
@@ -286,8 +289,10 @@ export default (sdk, chart) => {
286289 const value = parseFloat ( parseFloat ( y ) . toFixed ( 5 ) )
287290 return isNaN ( value ) ? y : value
288291 } ,
289- makeYTicker : labels => ( a , b , pixels , opts , dygraph ) =>
290- heatmapTicker ( a , b , pixels , opts , dygraph , labels ) ,
292+ makeYTicker :
293+ ( options = { } ) =>
294+ ( a , b , pixels , opts , dygraph , vals ) =>
295+ heatmapTicker ( a , b , pixels , opts , dygraph , vals , options ) ,
291296 highlightCircleSize : 0 ,
292297 } ,
293298 default : {
@@ -316,7 +321,9 @@ export default (sdk, chart) => {
316321 } = optionsByChartType [ chartType ] || optionsByChartType . default
317322
318323 const yAxisLabelFormatter = makeYAxisLabelFormatter ( labels )
319- const yTicker = makeYTicker ? makeYTicker ( chart . getVisibleDimensionIds ( ) ) : null
324+ const yTicker = makeYTicker
325+ ? makeYTicker ( { labels : chart . getVisibleDimensionIds ( ) , units : chart . getUnits ( ) } )
326+ : null
320327
321328 const { selectedLegendDimensions } = chart . getAttributes ( )
322329 const dimensionIds = chart . getPayloadDimensionIds ( )
0 commit comments