当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript projector.append函数代码示例

本文整理汇总了TypeScript中dojo-widgets/projector.append函数的典型用法代码示例。如果您正苦于以下问题:TypeScript append函数的具体用法?TypeScript append怎么用?TypeScript append使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了append函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: stackSelector

	},
	stackSelector(input) { return input[0]; },
	state: {
		columnHeight: 150,
		columnSpacing: 3,
		columnWidth: 10,
		domain: [-15, 15],
		height: 200,
		stackSpacing: 1,
		width: 100,
		xInset: 30
	},
	valueSelector(input) { return input[1]; }
});

global.basic = basic;
global.domain = domain;
global.allNegative = allNegative;
global.allNegativeDomain = allNegativeDomain;
global.group = group;
global.stack = stack;
global.stackDomain = stackDomain;

projector.append([
	basic, domain,
	allNegative, allNegativeDomain,
	group,
	stack, stackDomain
]);
projector.attach();
开发者ID:novemberborn,项目名称:dojo2-dataviz,代码行数:30,代码来源:negatives.ts

示例2: stackSelector

		labels: { anchor: 'middle', textAnchor: 'end', rotation: 45, offset: -5 },
		ticks: { anchor: 'end', length: 10, zeroth: true }
	},
	state: {
		columnHeight: 200,
		columnSpacing: 10,
		columnWidth: 20,
		domain: 50000,
		height: 330,
		stackSpacing: 1,
		styles: { marginTop: '20px' },
		width: 300,
		xInset: 75,
		yInset: 25
	},
	// Example of passing an observable to the chart.
	inputSeries: byProvince,
	divisorOperator: max,
	stackSelector(input) { return input.province; },
	valueSelector(input) { return input.count; }
});

// Make the charts available to the console.
global.absoluteChart = absoluteChart;
global.groupedByProvinceChart = groupedByProvinceChart;
global.percentageChart = percentageChart;
global.stackedByProvinceChart = stackedByProvinceChart;

projector.append([percentageChart, absoluteChart, groupedByProvinceChart, stackedByProvinceChart]);
projector.attach();
开发者ID:novemberborn,项目名称:dojo2-dataviz,代码行数:30,代码来源:app.ts

示例3: createWidget

const header = createWidget({
	id: 'header',
	stateFrom: widgetStore,
	tagName: 'h1'
});

widgets.push(header);

const layoutContainer = createLayoutContainer({
	id: 'layout-container',
	stateFrom: widgetStore
});

widgets.push(layoutContainer);

projector.append(widgets);

const panelFixed = createPanel({
	id: 'panel-fixed',
	stateFrom: widgetStore
});

layoutContainer.append(panelFixed);

const panelResize = createResizePanel({
	id: 'panel-resize',
	stateFrom: widgetStore
});

panelFixed.append(panelResize);
开发者ID:Tomdye,项目名称:app-example,代码行数:30,代码来源:app.ts

示例4: String

		length: 35
	},
	ticks: {
		anchor: 'end',
		length: 10,
		zeroth: true
	}
}, chartOptions));

const longGridLines = createColumnChart<number>(createAxesConfiguration({
	hardcoded: inputSeries.map(input => input / MAX_INPUT).map<[number, string]>(relative => {
		return [relative, String((relative * 100).toFixed(0)) + '%'];
	}),
	gridLines: {
		length: 120
	},
	ticks: {
		anchor: 'end',
		length: 10,
		zeroth: true
	}
}, chartOptions));

projector.append([
	inputs, inputsGridLines, inputsNoTicks,
	range, rangeAdjustedMax, rangeGridLines, rangeMax25, rangeNoTicks,
	hardcoded, hardcodedGridLines, hardcodedNoTicks, hardcodedWithIgnoredSteps,
	shortGridLines, longGridLines
]);
projector.attach();
开发者ID:novemberborn,项目名称:dojo2-dataviz,代码行数:30,代码来源:axes.ts


注:本文中的dojo-widgets/projector.append函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。