13 lines
599 B
Plaintext
13 lines
599 B
Plaintext
<view class="trend-chart {{variant === 'peak' ? 'peak' : ''}}">
|
|
<view class="trend-bars">
|
|
<view class="trend-bar-col" wx:for="{{bars}}" wx:key="label">
|
|
<view class="trend-bar {{item.value === 0 ? 'zero' : ''}} {{item.highlight ? 'highlight' : ''}}" style="height: {{item.percent}}%;">
|
|
<text class="trend-bar-value" wx:if="{{item.value > 0}}">{{item.valueText}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="trend-labels">
|
|
<text class="trend-bar-label {{item.highlight ? 'highlight' : ''}}" wx:for="{{bars}}" wx:key="label">{{item.label}}</text>
|
|
</view>
|
|
</view>
|