QlikSense主题开发
// 主题是qliksense 2018年2月版提出,4月版正式实施,其实就是去修改sense默认的.json文件和.css文件 {
// 定义自定义主题是否从默认主题(Sense Classic)继承样式属性。JSON文件中定义的属性会覆盖继承的属性。默认ture
"_inherit": false,
//(可选) 可以在JSON文件中引用的变量。
"_variables": {
"@default": "#555555",
"@dark": "#333333",
"@light": "#eeeeee",
"@H1": "24px",
"@H2": "18px",
"@H3": "14px",
"@H4": "13px",
"@H5": "12px",
"@font-normal": "12px"
},
// (可选) 引用将在应用主题时插入的自定义样式表。
"customStyles": [{
"cssRef": "theme.css",
"classRef": "my-theme"
}],
// 字体颜色。可以通过在任何支持颜色的级别上定义颜色属性来覆盖此设置
"color": "@default",
// 字体大小。可以通过在支持fontSize的任何级别上定义fontSize属性来覆盖此设置
"fontSize": "@font-normal",
// 图表的背景颜色。可以通过在图表类型级别定义背景颜色属性来覆盖此设置。
"backgroundColor": "@light",
// 对象样式。
"object": {
// 标题属性。可以通过在图表类型级别定义title属性来覆盖此设置。
"title": {
// 主标题
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
// 副标题
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
// 脚标题
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
},
// 标签属性。可以通过在图表类型级别为具有标签的图表定义label属性来覆盖此设置。
// 以下图表类型支持标签属性:
// barChart 条形图 (label.name.color; label.value.fontSize)
// gauge 仪表盘 (label.name.color;)
// histogram 直方图 (label.name.color; label.value.fontSize)
// lineChart 线型图 (label.name.color; label.value.fontSize)
// pieChart 饼图 (label.name.color; label.name.fontSize;label.value.fontSize)
//scatterPlot 散点图 (label.name.color; label.value.fontSize)
// waterfallChart 瀑布图 (label.value.fontSize)
"label": {
// 标签名称属性。
"name": {
"color": "@default",
"fontSize": "10px"
},
// 标签值属性。
"value": {
"color": "@default",
"fontSize": "10px"
}
},
// 轴属性。通过在图表类型级别上为具有轴的图表(条形图,箱形图,组合图,分布图,仪表,直方图,折线图,散点图和瀑布图)定义轴属性,可以覆盖此设置。
// 对于饼图,可以覆盖axis.title并用于为尺寸标签设置样式。
"axis": {
// 轴标题属性。
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
// 轴标签属性。
"label": {
"name": {
"color": "@default",
"fontSize": "@font-normal"
}
},
// 轴线属性。
"line": {
"major": {
"color": "@default"
},
"minor": {
"color": "@default"
}
}
},
// 网格属性。无法在图表类型级别覆盖此设置。
"grid": {
// 线属性
"line": {
// 高对比度
"highContrast": {
"color": "@default"
},
// 主要
"major": {
"color": "@default"
},
// 次要
"minor": {
"color": "@default"
}
}
},
// 参考线属性。无法在图表类型级别覆盖此设置。
"referenceLine": {
// 标签属性
"label": {
"name": {
"color": "@default",
"fontSize": "@font-normal"
}
},
// 超出范围的属性。
"outOfBounds": {
"color": "@default",
"backgroundColor": "@default",
"fontSize": "@H6"
}
},
// 图例 通过在图表类型级别为带有图例的图表(条形图,组合图,折线图,饼图,散点图,树图,瀑布图)定义图例属性,可以覆盖此设置。
"legend": {
// 图例标题
"title": {
"color": "@default",
"fontSize": "@font-normal"
},
// 图例标签
"label": {
"color": "@default",
"fontSize": "@font-normal"
}
},
// 图表类型 这些是可以存在于对象结构中的常见图表类型属性。为每个图表列出的属性是特定的
// 大多数全局对象属性也可以在图表类型级别上定义。如果完成,则覆盖全局对象级别上设置的属性。
// 条形图
"barChart": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
},
"axis": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"name": {
"color": "@default",
"fontSize": "@font-normal"
}
},
"line": {
"major": {
"color": "@default"
},
"minor": {
"color": "@default"
}
}
},
"legend": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"fontSize": "@font-normal",
"color": "@default"
}
},
"label": {
"value": {
"color": "@default",
"fontSize": "@font-normal"
}
},
// 超出范围的属性。
"outOfRange": {
"color": "@default"
}
},
// 箱型图
"boxPlot": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
},
"axis": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"name": {
"color": "@default",
"fontSize": "@font-normal"
}
},
"line": {
"major": {
"color": "@default"
},
"minor": {
"color": "@default"
}
}
},
"box": {
"whisker": {
"stroke": "@default"
},
"line": {
"stroke": "@default"
},
"box": {
"fill": "@default",
"stroke": "@default"
}
}
},
// 组合图
"comboChart": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
},
"axis": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"name": {
"color": "@default",
"fontSize": "@font-normal"
}
},
"line": {
"major": {
"color": "@default"
},
"minor": {
"color": "@default"
}
}
},
"legend": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"fontSize": "@font-normal",
"color": "@default"
}
}
},
// 分布图
"distributionPlot": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
},
"axis": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"name": {
"color": "@default",
"fontSize": "@font-normal"
}
},
"line": {
"major": {
"color": "@default"
},
"minor": {
"color": "@default"
}
}
},
"box": {
"fill": "@default"
}
},
// 过滤器?
"filterpane": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
}
},
// 仪表盘
"gauge": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
},
"axis": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"name": {
"color": "@default",
"fontSize": "@font-normal"
}
},
"line": {
"major": {
"color": "@default"
},
"minor": {
"color": "@default"
}
}
},
"label": {
"value": {
"color": "@default"
}
}
},
// 直方图
"histogram": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
},
"axis": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"name": {
"color": "@default",
"fontSize": "@font-normal"
}
},
"line": {
"major": {
"color": "@default"
},
"minor": {
"color": "@default"
}
}
},
"label": {
"value": {
"color": "@default",
"fontSize": "40px"
}
}
},
// 指标
"kpi": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
}
},
// 线型图
"lineChart": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
},
"axis": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"name": {
"color": "@default",
"fontSize": "@font-normal"
}
},
"line": {
"major": {
"color": "@default"
},
"minor": {
"color": "@default"
}
}
},
"legend": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"fontSize": "@font-normal",
"color": "@default"
}
},
"outOfRange": {
"color": "@default"
},
"label": {
"value": {
"color": "@dark",
"fontSize": "@font-normal"
}
}
},
// 列表框
"listBox": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
}
},
"content": {
"color": "@default",
"fontSize": "@font-normal"
}
},
// 地图
"mapChart": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
}
},
// 饼图
"pieChart": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
},
"axis": {
"title": {
"color": "@default",
"fontSize": "@font-normal"
}
},
"legend": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"fontSize": "@font-normal",
"color": "@default"
}
},
"label": {
"name": {
"color": "@default",
"fontSize": "@font-normal"
},
"value": {
"fontSize": "@font-normal"
}
}
},
//数据透视表
"pivotTable": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
},
"header": {
"fontSize": "@font-normal",
"color": "@default"
},
"content": {
"fontSize": "@font-normal",
"color": "@default"
}
},
// 散点图
"scatterPlot": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
},
"axis": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"name": {
"color": "@default",
"fontSize": "@font-normal"
}
},
"line": {
"major": {
"color": "@default"
},
"minor": {
"color": "@default"
}
}
},
"legend": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"fontSize": "@font-normal",
"color": "@default"
}
},
"label": {
"value": {
"color": "@default",
"fontSize": "@font-normal"
}
}
},
// 表???
"straightTable": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
},
"header": {
"fontSize": "@font-normal",
"color": "@default"
},
"content": {
"fontSize": "@font-normal",
"color": "@default"
}
},
// 文字图片
"textImage": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
}
},
// 树形图
"treemap": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
},
"legend": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"fontSize": "@font-normal",
"color": "@default"
}
},
"branch": {
"backgroundColor": "@default",
"label": {
"color": "@light",
"fontSize": "@font-normal"
}
},
"leaf": {
"label": {
"fontSize": "@font-normal"
}
}
},
// 瀑布图
"waterfallChart": {
"backgroundColor": "@light",
"title": {
"main": {
"color": "@default",
"fontSize": "@font-normal"
},
"subTitle": {
"color": "@default",
"fontSize": "@font-normal"
},
"footer": {
"color": "@default",
"fontSize": "@font-normal",
"backgroundColor": "@light"
}
},
"axis": {
"title": {
"fontSize": "@font-normal",
"color": "@default"
},
"label": {
"name": {
"color": "@default",
"fontSize": "@font-normal"
}
},
"line": {
"major": {
"color": "@default"
},
"minor": {
"color": "@default"
}
}
},
"legend": {
"label": {
"fontSize": "@font-normal",
"color": "@default"
}
},
"label": {
"value": {
"fontSize": "@font-normal"
}
},
"value": {
"color": {
"default": "@default",
"dark": "@dark",
"light": "@light"
}
},
// 形状
"shape": {
"positiveValue": {
"fill": "white"
},
"negativeValue": {
"fill": "#ccccc"
},
"subtotal": {
"fill": "#000000"
},
"bridge": {
"stroke": "#333333"
}
}
}
},
// 数据颜色属性。
"dataColors": {
// 原色
"primaryColor": "blue",
// 其他色
"othersColor": "grey",
// 错误颜色
"errorColor": "red",
// 空值颜色
"nullColor": "yellow"
},
// 调色板 按维度取色范围
"palettes": {
// 数据调色板的属性。这些用于属性面板中的尺寸颜色。
"data": [{
// 可选的。调色板的名称。
"name": "First data palette",
// 显示UI中调色板名称
"translation": "12 colors",
// 调色板的标识符。必须在系统中是唯一的。
"propertyValue": "data-palette-1",
// 调色板的类型。pyramid金字塔 row 行
"type": "pyramid",
// 调色板中使用的所有颜色的定义。从上到下,从左到右缩放。
"scale": [
["#4477aa"],
["#4477aa", "#cc6677"],
["#4477aa", "#ddcc77", "#cc6677"],
["#4477aa", "#117733", "#ddcc77", "#cc6677"],
["#332288", "#88ccee", "#117733", "#ddcc77", "#cc6677"],
["#332288", "#88ccee", "#117733", "#ddcc77", "#cc6677", "#aa4499"],
["#332288", "#44aa99", "#88ccee", "#117733", "#ddcc77", "#cc6677", "#aa4499"],
["#332288", "#44aa99", "#88ccee", "#117733", "#999933", "#ddcc77", "#cc6677", "#aa4499"],
["#332288", "#44aa99", "#88ccee", "#117733", "#999933", "#ddcc77", "#cc6677", "#882255", "#aa4499"],
["#332288", "#44aa99", "#88ccee", "#117733", "#999933", "#ddcc77", "#661100", "#cc6677", "#882255", "#aa4499"],
["#332288", "#6699cc", "#44aa99", "#88ccee", "#117733", "#999933", "#ddcc77", "#661100", "#cc6677", "#882255", "#aa4499"],
["#332288", "#6699cc", "#88ccee", "#44aa99", "#117733", "#999933", "#ddcc77", "#661100", "#cc6677", "#aa4466", "#882255", "#aa4499"]
]
},
{
"name": "Second data palette",
"translation": "4 Colors",
"propertyValue": "data-palette-2",
"type": "row",
"scale": [
"#ff00ff",
"#00ff00",
"#0000ff",
"#000000"
]
}
],
// UI调色板的属性。您可以定义几个调色板,但是在颜色选择器中使用ui中定义的第一个调色板,例如,当用单色时/维度/度量/按表达式。
"ui": [{
// 调色板名称
"name": "Palette",
// UI调色板中使用的颜色。应始终定义唯一的颜色。
"colors": [
"#cccccc",
"#aaaaaa",
"#111111",
"#999999",
"#acacac",
"#dddddd",
"#eeeeee",
"#ffffff",
"#000000"
]
}]
},
// 按度量取色范围 这些是常见的配色方案属性。在“属性”面板中,缩放用于“测量颜色”。
"scales": [
{
// 配色方案名称(自定义顺序渐变)
"name": "Custom Sequential Gradient",
// 显示UI中颜色方案的名称
"translation": "Custom Sequential Gradient",
// 配色方案的属性值 sg(Sequential Gradient 顺序渐变)sc(Sequential Class顺序类)dg(Diverging gradient 发散渐变)dc(Diverging Classes 发散类)
"propertyValue": "sg",
// 配色方案的类型。gradient渐变 classes类
"type": "gradient",
// 颜色方案中包含的颜色,从左到右缩放。
"scale": ["#1A2980", "#26D0CE"]
},
{
"name": "Custom Sequential Classes",
"translation": "Custom Sequential Classes",
"propertyValue": "sc",
"type": "class",
"scale": ["#d32b1d", "#023474"]
},
{
"name": "Custom Diverging gradient",
"translation": "Custom Diverging gradient",
"propertyValue": "dg",
"type": "gradient",
"scale": ["#1A2980", "#FFFFFF", "#26D0CE", "#d32b1d"]
},
{
"name": "Custom Diverging Classes",
"translation": "Custom Diverging Classes",
"propertyValue": "dc",
"type": "class",
"scale": ["#9C824A", "#EF0107", "#DB0007", "#FFFFFF", "#023474"]
}
]
} // 详情请参阅官方文档:https://help.qlik.com/en-US/sense-developer/February2018/Subsystems/Extensions/Content/CustomThemes/custom-themes-properties.htm?_ga=2.57217962.1673536238.1523350076-225234654.1523350076
QlikSense主题开发的更多相关文章
- QlikSense 2018.2月版起支持主题开发
自定义主题开发 // 主题是qliksense 2018年2月版提出,4月版正式实施,其实就是去修改sense默认的.json文件和.css文件 { // 定义自定义主题是否从默认主题(Sense C ...
- 黄聪:《跟黄聪学WordPress主题开发》
又一个作品完成!<跟黄聪学Wordpress主题开发>,国内最好的Wordpress主题模版开发视频教程!! 目录预览: WordPress官方源文件层式结构讲解 WordPress数据库 ...
- wordpress 主题开发
https://yusi123.com/3205.html https://themeshaper.com/2012/10/22/the-themeshaper-wordpress-theme-tut ...
- 学习笔记5——wp主题开发
我觉得学习wordpress插件开发之前还是得先理解一下wp的主题开发,循序渐进才能学好wordpress开发,话不多说,接下来整理一下这两天学习的wordpress主题开发的一些心得和体会,与大家一 ...
- Hexo主题开发
序章 想要一个自己的知识管理系统,用了 Hexo ,但是没有发现自己心仪的主题,就自己做了一个.本文记录了制作的全过程.本人编码功底和前端知识并不是特别雄厚,希望能由此文引出各路大神的兴趣,以后制作出 ...
- WordPress 主题开发:从入门到精通(必读)
本专栏介绍如何开发设计你自己的 WordPress 主题.如果你希望了解更多如何安装和应用主题的内容,请参阅应用主题文档.本文的内容不同于应用主题,因为所讨论的是编写代码去构建你自己的主题的技术内容, ...
- vscode主题开发
vscode主题开发教程 https://blog.csdn.net/Suwanqing_su/article/details/105945290 个人配置结果 主题代码 到Vscode放插件的目录中 ...
- WordPress 主题开发 - (三) 开发工具 待翻译
Before we get started building any WordPress Theme, we’re going to need to get our development tools ...
- WordPress主题开发:开启文章缩略图功能
安装wordpress后,默认的主题里编辑文章都会看见这个缩略图功能,那么我们自己开发的新主题怎么有这个功能呢? 目录: 一.开启缩略功能 二.设置缩略图大小 三.编辑文章,上传缩略图 四.调用缩略图 ...
随机推荐
- 基于Spark的电影推荐系统(电影网站)
第一部分-电影网站: 软件架构: SpringBoot+Mybatis+JSP 项目描述:主要实现电影网站的展现 和 用户的所有动作的地方 技术选型: 技术 名称 官网 Spring Boot 容器 ...
- 链表-LinkList
什么是链表 维基百科:链表(Linked list)是一种常见的基础数据结构,是一种线性表,但是并不会按线性的顺序存储数据,而是在每一个节点里存到下一个节点的指针(Pointer).由于不必须按顺序存 ...
- 07-简单认识margin
margin 外边距,表示边框到最近盒子的距离. 对于左右两边 <!DOCTYPE html> <html lang="en"> <head> ...
- ThinkPHP5实现定时任务
ThinkPHP5实现定时任务 最近使用ThinkPHP5做了个项目,项目中需要定时任务的功能,感觉有必要分享下 TP5做定时任务使用到command.php的 步骤如下: 1.配置command.p ...
- 03-Django基础概念和MVT架构
一.Django基础 掌握Django的 MVT 架构的使用 掌握Git管理源代码 主要内容 了解Django的 MVT 架构的使用流程 使用Django完成案例 : 书籍信息管理 MVC介绍 MVC ...
- Java通过JDK动态代理简单的实现一个AOP
首先说一下,因为自己还没有去研读spring的AOP的源码,只是大致知道其功能,便想着自己先手动实现一个先看看,觉得这样以后研读源码的时候会收获更多! 实现:做一个在添加注解的方法执行之前,可以先执行 ...
- 你真的懂Spring Java Config 吗?Full @Configuration vs lite @Bean mode
Full @Configuration和lite @Bean mode 是 Spring Java Config 中两个非常有意思的概念. 先来看一下官方文档关于这两者的相关内容: The @Bean ...
- 题解:2018级算法第二次上机 Zexal的竞赛
题目描述: 样例: 实现解释: 一道需要一点思考的动态规划题目 知识点:动态规划,数据记录 首先将题目描述调整:分别输入不同分数的题目总分(便于后续计算),当获得了i分数的总分后无法获得i-1和i+1 ...
- maven解决无法从远程仓库获取ojdbc问题
原因 Oracle 的 ojdbc.jar 是收费的,Maven 中央库中实际上没有此资源 解决方法 手动下载相应的jar,然后将其安装到本地仓库.具体操作如下: 1\先去下载相关的jar包或者驱动 ...
- Java并发编程总结(一)Syncronized解析
Syncronized解析 作用: )确保线程互斥的访问同步代码 )保证共享变量的修改能够及时可见 )有效解决重排序问题. 用法: )修饰普通方法(锁是当前实例对象) )修饰静态方法(锁是当前对象的C ...