Dynamic timeoffset in the bar chart #541
-
Hello,
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
try with: timeoffset: |
$ex {
const [from, to] = get('visible_range');
const hours = (+to - +from) / 1000 / 60 / 60 ;
const days = hours / 24;
if (hours <= 24) return "10m";
if (days <= 31) return "5h";
return "5d";
} |
Beta Was this translation helpful? Give feedback.
-
Hello David, |
Beta Was this translation helpful? Give feedback.
try with: