趋势图
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>趋势图</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/nykapi/v2.Analysis/trend</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>时间筛选类型,week周,month月,year年,custom自定义,默认week</td>
</tr>
<tr>
<td style="text-align: left;">date_range</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">array</td>
<td>当type=custom时,此项有效,例:[2023-07-29,2023-07-31]</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;success&quot;,
&quot;data&quot;: {
&quot;data&quot;: [
{
&quot;order_amount&quot;: &quot;0.00&quot;,
&quot;order_count&quot;: 0,
&quot;firtorder_user&quot;: 0,
&quot;date&quot;: &quot;2023-08-03&quot;
},
{
&quot;order_amount&quot;: &quot;790.02&quot;,
&quot;order_count&quot;: 3,
&quot;firtorder_user&quot;: 0,
&quot;date&quot;: &quot;2023-08-04&quot;
},
{
&quot;order_amount&quot;: &quot;0.00&quot;,
&quot;order_count&quot;: 0,
&quot;firtorder_user&quot;: 0,
&quot;date&quot;: &quot;2023-08-05&quot;
},
{
&quot;order_amount&quot;: &quot;0.00&quot;,
&quot;order_count&quot;: 0,
&quot;firtorder_user&quot;: 0,
&quot;date&quot;: &quot;2023-08-06&quot;
},
{
&quot;order_amount&quot;: &quot;1988.00&quot;,
&quot;order_count&quot;: 5,
&quot;firtorder_user&quot;: 0,
&quot;date&quot;: &quot;2023-08-07&quot;
},
{
&quot;order_amount&quot;: &quot;900.00&quot;,
&quot;order_count&quot;: 1,
&quot;firtorder_user&quot;: 0,
&quot;date&quot;: &quot;2023-08-08&quot;
},
{
&quot;order_amount&quot;: &quot;0.00&quot;,
&quot;order_count&quot;: 0,
&quot;firtorder_user&quot;: 0,
&quot;date&quot;: &quot;2023-08-09&quot;
}
],
&quot;xAxis&quot;: [
&quot;周四&quot;,
&quot;周五&quot;,
&quot;周六&quot;,
&quot;周日&quot;,
&quot;周一&quot;,
&quot;周二&quot;,
&quot;周三&quot;
],
&quot;series&quot;: [
{
&quot;name&quot;: &quot;订单金额&quot;,
&quot;data&quot;: [
&quot;0.00&quot;,
&quot;790.02&quot;,
&quot;0.00&quot;,
&quot;0.00&quot;,
&quot;1988.00&quot;,
&quot;900.00&quot;,
&quot;0.00&quot;
],
&quot;type&quot;: &quot;line&quot;
},
{
&quot;name&quot;: &quot;订单数&quot;,
&quot;data&quot;: [
0,
3,
0,
0,
5,
1,
0
],
&quot;type&quot;: &quot;line&quot;
},
{
&quot;name&quot;: &quot;首单客户&quot;,
&quot;data&quot;: [
0,
0,
0,
0,
0,
0,
0
],
&quot;type&quot;: &quot;line&quot;
}
]
}
}</code></pre>