旋转Vega热图中的X轴标签?

问题描述

我建立了相关矩阵的热图

enter image description here

  1. 如何旋转x轴标签
  2. 是否可以使图例像

    enter image description here

我尝试过

SqlQuery = "SELECT [Value] FROM tblRawCallData WHERE (([DueDate] = #" & Format(inpDate,"@@@@\/@@\/@@") & "#) AND ([Invoice] = '" & inpInvoiceNum & "'));"

但没有发生

我正在使用vega“ https://vega.github.io/schema/vega/v3.json”模式

解决方法

旋转x轴名称,此方法有效

      {
        "orient": "bottom","scale": "x","labelOverlap":false,"domain": false,"title": "Features","encode": {
          "labels": {
            "update": {
              "angle": {"value": -50},"fontSize": {"value": 10},"align": {"value": "right"}
            }
          }
        }  
      },

enter image description here

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...