-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing values based on interval #65
Comments
I am not really sure about the attribute names, but three values are required. The interval, the field to apply the interval to, and whether to require the value lands on the interval start. This could probably accommodate number based axis by leaving the field off. I am guessing that these attributes would be applied to the variables in the data section. interval would be a number from 1 to field max <data>
...
<variables>
<variable interval="15" intervalField="minutes" intervalStrict="true">
</variable>
</variables>
</data> |
I think that the attributes should be on the Also, I think we could combine the So, your example above would become: <variables interval="15m" intervalStrict="true"> I wonder if we also need a few more attributes, though. In particular:
So, to summarize, assuming we add all these attributes, here's an example of how it would all look: <data>
...
<variables interval="1M" intervalStrict="true" align="2010-01-13" min="1995-01-13" max="2013-03-15">
<variable.../>
<variable.../>
...
</variables>
</data> This would indicate that this data set should contain regular monthly values, on the 13th of each month, from 1995-01-13 to 2013-03-15; any month during this period that does not contain a value on the 13th would cause Multigraph to insert a missing value. How does this sound? |
I like the shortened interval syntax a lot. Anything to increase brevity with out sacrificing clarity is good in my book. Along those like could we change align to offset and use the same syntax? <data>
...
<variables interval="1M" intervalStrict="true" offset="13d" min="1995-01-13" max="2013-03-15">
<variable.../>
<variable.../>
...
</variables>
</data> Wouldn't all of the values outside of the min and max range automatically render as missing because there is simply no data there? |
It would be convenient to be able to configure multigraph to detect when data is missing based on the interval between values rather than providing a special value.
I think there might be a general solution to this problem. It would involve truncating the dates to a specific field and amount then checking that current and last are consecutive. It would not matter when the value occurs within the interval just that it exists. An additional parameter might require that values must occur on the interval to be considered not missing. This method would just check that the value is equal to the truncated value and check that current and last are consecutive.
The text was updated successfully, but these errors were encountered: