highcharts - Scatter Highcharts 响应问题 Yii2
问题描述
我在 Yii2 中使用散点图,使用以下扩展名 https://github.com/miloschuman/yii2-highcharts
为了响应,我已经传递了这样的参数。
<?php
use miloschuman\highcharts\Highcharts;
echo Highcharts::widget([
'options' => [
'responsive' => [
'rules'=> [
[
'condition'=>
[
'maxWidth' => 500,
],
'chartOptions'=> [
'legend' => [
'enabled'=> true,
'align'=> 'center',
'verticalAlign'=> 'bottom',
'layout'=> 'horizontal',
],
],
]
],
],
]);
?>
但它不适用于手机和平板电脑。有人知道吗?谢谢!
解决方案
推荐阅读
- javascript - Chrome 扩展 - 如何在页面加载时将新元素注入页面?
- angular - 错误:formGroup 需要一个 FormGroup 实例。请传一个;TypeError:无法读取未定义的属性“控件”
- objective-c - 将 NSData 转换为 NSString,但将无效的 UTF-8 替换为 �
- javascript - Javascript减少参数
- api - Flasgger 未能加载 API 定义
- react-table-v7 - react-table 7 自定义单元格显示数据未定义
- javascript - 我很好奇python是如何连接到网站的
- python - SpeechRecognition 已安装但未在 PyCharm CE 中导入
- python - 正则表达式错误:位置 108 的括号不平衡
- c++ - C ++将派生子类转换为另一个派生子类