QingWei-Li/vue-trend

continuous drawing mode?

Opened this issue · 1 comments

I've used your very nice library to make a heartbeat monitor for a remote agent keep alive system and I was wondering if there is some way to have the trend continuously draw. Right now when the data updates it just changes with no animation.

@rucuriousyet If you haven't figured it out yet. Just add a :key to the vue component.

          <trend
            :key="var[0]"
            :data="var"
            :gradient="['#6fa8dc', '#42b983', '#2c3e50']"
            auto-draw
            smooth
          />