嵌入在HTML中具有响应行为:我可以根据屏幕宽度更改传奇位置吗?
我正在使用Plotly将图嵌入HTML页面上。我的网站响应迅速,但我对嵌入的情节的传说不满意。在这里,您可以看到两个屏幕截图:在左侧,我们看到宽屏上的情节,在右侧的绘图上有一个狭窄的屏幕。
vs
,
如图所示,该图在宽屏上看起来不错(左)。但是,当屏幕狭窄(右)时,传奇占用太多空间,情节缩小了。
当屏幕较小时,将图例移动下面的传说将解决问题(如红色图形所示)。在添加传奇时,是否可以将这种响应行为嵌入情节中?
提前致谢! :)
I am using Plotly to embed a plot on an HTML page. My website is responsive, but I am not satisfied with the legend of the plot that I have embedded. Here you can see two screenshots: on the left, we see the plot on a widescreen, and on the right with a narrow one.
vs
As shown in the figure, the plot looks good on the widescreen (left). However, when the screen is narrow (right), the legend takes too much space and the plot is shrunk.
Moving the legend below when the screen is small would solve the issue (as depicted with the red drawing). Is it possible to embed such a responsive behavior in Plotly when adding the legend?
Thanks in advance! :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论