Preset time interval in custom widget

Is there a way to set preset time interval in custom widget?

I have a customer that require a inverted chart, so I created a custom widget, but the preset time interval, most specifically, the calendar header button to choose a time period, is something that the customer require too.

How to make this?

Some changes that would be welcome:

  • A option to inverted the chart in chart type widgets;

  • Preset time interval in custom widget, and the initial period like in chart type widgets (Why dont have this?).

Dear Julihérmes,

Currently, our platform does not support setting preset time intervals directly within custom widgets. However, you can achieve a similar functionality by following these steps:

  1. Disable Widget Header Visibility: Go to the frame settings of your custom widget and set the header visibility to “show only button.” This will allow you to manage the header elements more effectively.

  2. Implement Custom Functionality: Within your custom widget, you can develop the functionality to preset time intervals. This involves adding custom code to handle the time period selection as required by your customer.

Ok, but the filter implemented in custom HTML will be limited with the last 10k data?

Because I can only inform the number of data that I can pass to custom HTML, or I am wrong?

Can I filter data through custom HTML?

About reverse chart, Tago uses Apache ECharts for charts widget? Because ECharts has a option to invert the chart, very easy, why Tago dont have this option?

  1. Record Limits and Date Filters:
    You are correct that the maximum number of records returned is capped at 10,000. The date filter in the custom widget operates based on these returned records. Therefore, if your table returns 10,000 records, the date filter within the custom widget will apply to these 10,000 records.

  2. Retrieving More Than 10,000 Records:
    If you wish to retrieve more than the initial 10,000 records, you need to create a date filter that triggers an analysis. This analysis will handle the data manipulation behind the scenes to fetch records for the specified period and populate the table accordingly.

  3. Feature Requests:
    Regarding the two changes you mentioned— “preset time interval in custom widget” and “inverted the chart in chart type widgets”—these have been forwarded to the frontend team for review. Kindly open a new topic in the community under the “Idea” category to formally propose these changes.

Thanks for the you response.

Can you give me the documentation about the Tago library used in custom widgets?

I will create the new idea topics!

https://help.tago.io/portal/en/kb/articles/450-custom-widget#Creating_your_own