Chart value vs function

Can anybody what is the difference between using a function to retrieve a value vs using an expression like #value# ?

https://snippet.webix.com/x1ayiafd

In the above snippet that is the only difference between the two charts and the first skips the y-axis value for the year 04 whereas the second chart shows a value of 0 and plots it on the chart.

I have to use a function is my case but I want the value to be skipped if it is not in the dataset. How do I achieve that ?

Hello,
The point is that templates are less complex than functions, while functions are more flexible. With templates, you can return the value and add some simple HTML, but with functions, you can add complex HTML and conditions.

I have to use a function is my case but I want the value to be skipped if it is not in the dataset. How do I achieve that ?
Please, check the related discussion https://forum.webix.com/discussion/comment/20106/#Comment_20106
You can return an invalid value (such as an empty string) for items

value:function(obj) {
   return obj['top:sales:1'] ? obj['top:sales:1'] : " ";
}