Try like this
<dashboard stylesheet="eval_tokens.css">
<label>Eval Tokens</label>
<row>
<panel >
<chart>
<title>Top sourcetypes for index=_internal</title>
<search>
<query>index=_internal sdfdsfdfdfdf| top sourcetype</query>
<earliest>-2h</earliest>
<latest>now</latest>
<progress>
<eval token="duration">tonumber('job.resultCount')</eval>
</progress>
</search>
<h3>Duration</h3>
<div class="custom-result-value">$duration$</div>
</html>
<option name="charting.chart">bar</option>
</chart>
</panel>
</row>
</dashboard>
... View more