You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/10/19 18:42:31 UTC

[GitHub] [echarts] cinic commented on issue #17561: [Bug] CallbackDataParams type doesn't have axisValue, axisValueLabel properties

cinic commented on issue #17561:
URL: https://github.com/apache/echarts/issues/17561#issuecomment-1284427717

   @manojkannekanti 
   u can change default Tooltip typings in composition:
   
   ```typescript
   import * as echarts from 'echarts/core';
   import type { TooltipComponentOption, DefaultLabelFormatterCallbackParams,  TooltipComponentFormatterCallback, } from 'echarts';
   
   export type LineWithBarOption = echarts.ComposeOption<
     | ToolboxComponentOption
     | GridComponentOption
     | LegendComponentOption
     | LineSeriesOption
   > & {
     tooltip?: TooltipOption | TooltipOption[];
   };
   
   type TooltipFormatterParams = DefaultLabelFormatterCallbackParams & {
     axisId: string;
     axisIndex: number;
     axisType: string;
     axisValue: string | number;
     axisValueLabel: string;
   };
   type TooltipOption = Omit<TooltipComponentOption, 'formatter'> & {
     formatter?:
       | string
       | TooltipComponentFormatterCallback<TooltipFormatterParams | TooltipFormatterParams[]>;
   };


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org