Draw charts from Azure Data Explorer queries
Перейти к файлу
Violet Voronetzky a1c07cc35a Version 1.0.4 - Update to MS code of conduct + MIT license 2019-11-11 14:47:56 +02:00
.vscode Initial release 2019-11-10 18:08:31 +02:00
definitelyTyped Initial release 2019-11-10 18:08:31 +02:00
src Expose methods for integration (temp for debug) 2019-11-11 11:02:23 +02:00
test Initial release 2019-11-10 18:08:31 +02:00
.gitignore Initial release 2019-11-10 18:08:31 +02:00
.travis.yml Add Travis + badge 2019-11-11 09:06:59 +02:00
CODE_OF_CONDUCT.md Update to MS Code Of Conduct + MIT lisence 2019-11-11 14:45:49 +02:00
LICENSE Updating LICENSE to template content 2019-11-10 07:38:22 -08:00
README.md Update to MS Code Of Conduct + MIT lisence 2019-11-11 14:45:49 +02:00
SECURITY.md Initial SECURITY.md commit 2019-11-10 07:38:25 -08:00
index.ts Initial release 2019-11-10 18:08:31 +02:00
launch.json Initial release 2019-11-10 18:08:31 +02:00
package.json Version 1.0.4 - Update to MS code of conduct + MIT license 2019-11-11 14:47:56 +02:00
tasks.json Initial release 2019-11-10 18:08:31 +02:00
tsconfig.json Initial release 2019-11-10 18:08:31 +02:00

README.md

This package is a work in process. Please DO NOT USE it yet

query-data-to-chart-private

Build Status    npm version

Draw charts from Azure Data Explorer queries

Installation

npm install adx-query-charts

Usage

import * as Charts from 'adx-query-charts';

const chartHelper = new Charts.KustoChartHelper();
const chartOptions: Charts.IChartOptions = {
    chartType: Charts.ChartType.Column,
    columnsSelection: {
        xAxis: { name: 'timestamp', type: Charts.DraftColumnType.DateTime },
        yAxes: [{ name: 'requestCount', type: Charts.DraftColumnType.Int }]
    }
};
const transformed: Charts.ITransformedQueryResultData = chartHelper.transformQueryResultData(queryResult.data, chartOptions);

Test

Unit tests are written using Jest.

Run tests: npm run test

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.