Recent

Author Topic: How to avoid drawing zero?  (Read 1206 times)

Nicole

  • Hero Member
  • *****
  • Posts: 1324
How to avoid drawing zero?
« on: October 17, 2022, 07:15:58 pm »
attached is a chart.
It would be nice, IF.... only_the_spikes_of_it were the chart.

In other words:
How can I make the chart leave alone all zero values?
Yes, I can filter them by code.
In Steema-Chart there was a setting anywhere to avoid curves like the attach.

Does TAChart know such a magic click as well?


ANOTHER perspective of putting / solving it:
It is a "weekly" chart. Although, the values need not necessarily coming in the same weekday each week.
Is there an option as "take one value of this very time interval"?

Thank you for hints.


wp

  • Hero Member
  • *****
  • Posts: 13550
Re: How to avoid drawing zero?
« Reply #1 on: October 17, 2022, 08:30:19 pm »
It would be nice, IF.... only_the_spikes_of_it were the chart.

In other words:
How can I make the chart leave alone all zero values?
Yes, I can filter them by code.
In Steema-Chart there was a setting anywhere to avoid curves like the attach.

Does TAChart know such a magic click as well?
Does this mean that there are zero-values between the "spike values"? Simply skip those data points with y=0 and do not add them to the chart - the x values need not be equidistant - and you'll have a smooth curve containing only the "spike values".

There is no built-in filter to suppress "unwanted" values. What is "unwanted"? I could imagine that there are applications which would just be the opposite, namely that the interest is in the zero values (are they really zero?), and the "spikes" are unwanted.

It is a "weekly" chart. Although, the values need not necessarily coming in the same weekday each week.
Is there an option as "take one value of this very time interval"?
This must be in your code. You get the data from some outside source. Before you add them to the chart you must clean them and prepare them in the way you need them. There are so many options, and TAChart cannot consider all of them by built-in features.

 

TinyPortal © 2005-2018