This topic contains 1 reply, has 2 voices, and was last updated by Anonymous 1 year, 11 months ago.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
HTML Elements › Forums › Charts & Data Viz › Table › Personalizing the tick marks count
Tagged: custom element, custom tank scale, custom tick marks, smart elements, smart framework custom scale, web component, web components
This topic contains 1 reply, has 2 voices, and was last updated by Anonymous 1 year, 11 months ago.
Hello guys
I’m using the Tank custom element but i’m facing an issue. I need a scale from 0 to 100 but i don’t want all the ticks an labels to be visible. I need only a few of them : 5, 15 , 55, 85, 100. Is that possible ? Also I want these values to be the only selectable ones.
Hi hansT,
Yes, it’s possible.
To do this, you have to set several properties:
– coerce and customInterval must be set to true
– customTicks must be set to an array with options, in your case – ‘[5, 15 , 55, 85, 100]’
Here is an example:
<smart-tank coerce custom-interval custom-ticks='[5, 15 , 55, 85, 100]'></smart-tank>
Please, take a look also at the example in the demo section of our website:
https://www.htmlelements.com/demos/tank/custom-interval/
It will be helpful for you.
Best Regards,
Ivailo Ivanov
Smart HTML Elements Team
https://www.htmlelements.com
You must be logged in to reply to this topic.