Line chart plotting

I want to show line chart for the current month(days vs cost). But i don’t want the line to be plotted for the dates which are after current date.
Could you please help me in this ?

Hello,
Plotting the line chart depends on data. In other words, the chart will render x-axis and the grid for all available fields, but if there is no data for plotting - the chart will not show anything
Please check the sample: https://snippet.webix.com/xlicwy09