Please open below fiddle.http://jsfiddle.net/eg8mm4b8/27/
We would like to keep chart setting as it is but while hover on series, we would like to hide Forecasted value hide based on conditionally. Can you please guide this.
We also checked contentsFunction but we don't want to do dynamic tooptip because our data getting aggregate to day/month/year.
Please reply asap.
Hi.
Without contents function currently you can set flags to show conditionally only hovered series or the ones that contains data:https://zoomcharts.com/developers/en/time-chart/api-reference/settings/info.html#doc_showNoData
If you need some specific conditions that you can control, you would have to use contentsFunction.Aggregation shouldn't be a problem using contentsFunction as you can access different aggregation values under the data object.
Anyway, looking at your example, I guess that you can go with showNoData: false flag.http://jsfiddle.net/eg8mm4b8/29/
showNoData: false
Hope it helps.
We do not want to hide tool-tip but the second series data (Forecasted) can be show on tool-tip by conditionally.
For Example:For date 26 Mar 18 we would like only show actual values but not the forecasted on tooltip. for other series it can be show as it is.
Did you check the example I provided in my previous message?
It kind of does what you are looking for.
Screenshot provided is working well already but you can see on Mar 26 2018 Forecasted in tooltip value we would like to hide conditionally.
Yes, it is displayed because both Actual and Forecasted has data.
If this isn't suitable for you, then your only option is to use contentsFunction.
Ok Thanks.
We have achieved through the contentsFunctions but how can we modifiy tooptip header.
We would like to show date based on our dateformat on tooltip header.
Well you can set showHeader to false and then use contentsFunction to create your own header.
https://zoomcharts.com/developers/en/time-chart/api-reference/settings/info.html#doc_advanced.showHeader