deno.land / x / billboardjs@3.6.0 / config / Options / shape / bubble.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/** * Copyright (c) 2017 ~ present NAVER Corp. * billboard.js project is licensed under the MIT license *//** * bubble config options */export default { /** * Set bubble options * @name bubble * @memberof Options * @type {object} * @property {object} bubble bubble object * @property {number|Function} [bubble.maxR=35] Set the max bubble radius value * @property {boolean} [bubble.zerobased=false] Set if min or max value will be 0 on bubble chart. * @example * bubble: { * // ex) If 100 is the highest value among data bound, the representation bubble of 100 will have radius of 50. * // And the lesser will have radius relatively from tha max value. * maxR: 50, * * // or set radius callback * maxR: function(d) { * // ex. of d param - {x: Fri Oct 06 2017 00:00:00 GMT+0900, value: 80, id: "data2", index: 5} * ... * return Math.sqrt(d.value * 2); * }, * zerobased: false * } */ bubble_maxR: <number|(() => number)> 35, bubble_zerobased: false};
billboardjs

Version Info

Tagged at
2 years ago