Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
samples/**/src/ig/
11 changes: 11 additions & 0 deletions samples/charts/data-chart/_bug-data-legend-layout-dev/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"printWidth": 250,
"tabWidth": 4,
"useTabs": false,
"semi": true,
"singleQuote": false,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"fluid": false
}
56 changes: 56 additions & 0 deletions samples/charts/data-chart/_bug-data-legend-layout-dev/ReadMe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!-- NOTE: do not change this file because it's auto re-generated from template: -->
<!-- https://github.com/IgniteUI/igniteui-wc-examples/tree/vnext/templates/browser/sample/ReadMe.md -->

This folder contains implementation of Web Components application with example of Data Annotation Multiple With Stocks feature using [Data Chart](https://infragistics.com/webcomponentssite/components/general-getting-started.html) component.


<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<body>
<a target="_blank" href="https://infragistics.com/webcomponentssite/components/general-getting-started.html" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem" alt="View Docs" src="https://github.com/IgniteUI/igniteui-blazor-examples/raw/vnext/templates/sample/images/button-docs.png"/>
</a>
<a target="_blank" href="./src/index.ts" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="View Code" src="https://github.com/IgniteUI/igniteui-blazor-examples/raw/vnext/templates/sample/images/button-code.png"/>
</a>
<a target="_blank" href="https://www.infragistics.com/webcomponents-demos/samples/charts/data-chart/data-annotation-multiple-with-stocks" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="Run Sample" src="https://github.com/IgniteUI/igniteui-blazor-examples/raw/vnext/templates/sample/images/button-run.png"/>
</a>
<a target="_blank" href="https://codesandbox.io/s/github/IgniteUI/igniteui-wc-examples/tree/master/samples/charts/data-chart/data-annotation-multiple-with-stocks?fontsize=14&hidenavigation=1&theme=dark&view=preview&file=/src/{SampleFile}" rel="noopener noreferrer">
<img height="40px" style="border-radius: 0rem; max-width: 100%;" alt="Run Sample" src="https://github.com/IgniteUI/igniteui-blazor-examples/raw/vnext/templates/sample/images/button-sandbox.png"/>
</a>
</body>
</html>

## Branches

> **_NOTE:_** You should use [master](https://github.com/IgniteUI/igniteui-angular-examples/tree/master) branch of this repository if you want to run samples on your computer. Use the [vnext](https://github.com/IgniteUI/igniteui-angular-examples/tree/vnext) branch only when you want to contribute new samples to this repository.

## Instructions

To set up this project locally, execute these commands:

```
git clone https://github.com/IgniteUI/igniteui-wc-examples.git
git checkout master
cd ./igniteui-wc-examples
cd ./samples/charts/data-chart/data-annotation-multiple-with-stocks
```

open above folder in VS Code or type:
```
code .
```

In terminal window, run:

```
npm install
npm run start
```

Then open http://localhost:4200/ in your browser


## Learn More

To learn more about **Ignite UI for Web Components**, check out the [Web Components documentation](https://infragistics.com/webcomponentssite/components/general-getting-started.html).
68 changes: 68 additions & 0 deletions samples/charts/data-chart/_bug-data-legend-layout-dev/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
var gulp = require('gulp');
var del = require('del');
var flatten = require('gulp-flatten');
var fileRoot = 'C:/work/dev-tools/XPlatform/Main/'
var platformStatic = "WCCore";
var platformFolder = "WebComponents";
function clean(cb) {
del.sync("src/ig/**/*.*");
del.sync("src/ig");
cb();
}
function copyStatic() {
return gulp.src([
fileRoot + 'Source/TSCore/*.ts',
fileRoot + `Source/${platformStatic}/*.ts`,
fileRoot + 'Source/TSCore/*.tsx',
fileRoot + `Source/${platformStatic}/*.tsx`
])
.pipe(gulp.dest("src/ig/igniteui-core"))
}
function copy() {
return gulp.src([
fileRoot + 'Source/Translator/bin/build/TS/**/*.ts',
fileRoot + `Source/Translator/bin/build/${platformFolder}/**/*.ts`,
fileRoot + 'Source/*.JS/**/bin/**/TS/**/*.ts',
fileRoot + `Source/*.JS/**/bin/**/${platformFolder}/**/*.ts`,

// "!" + fileRoot + 'Source/Gauges.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/Dashboards.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/GeographicMap.JS/**/bin/**/*.*',

"!" + fileRoot + 'Source/Barcode.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/CheckboxList.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/DataAdapters.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/DockManager.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/Documents.Core.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/Excel.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/Encoding.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/Gantt.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/Grid.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/Inputs.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/Layouts.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/PropertyEditor.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/Spreadsheet.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/Spreadsheet.ChartAdapter.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/Schedule.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/RadialMenu.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/WebInputs.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/Toolbar.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/Treemap.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/Undo.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/WebGrids.JS/**/bin/**/*.*',
"!" + fileRoot + 'Source/WCBuild/**/',
"!" + fileRoot + 'Source/NGBuild/**/',
"!" + fileRoot + 'Source/RBuild/**/',
"!" + fileRoot + 'Source/RevealBundler/**/',
"!" + fileRoot + 'Source/**/igniteui-testframework/**/*.*',
"!" + fileRoot + 'Source/**/public_api.*.*',
])
.pipe(flatten({ includeParents: -1 }))
.pipe(gulp.dest("src/ig"))
}
exports.default = gulp.series(
clean,
gulp.parallel(
copyStatic,
copy)
);
231 changes: 231 additions & 0 deletions samples/charts/data-chart/_bug-data-legend-layout-dev/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
<!DOCTYPE html>
<html>
<head>
<title>Sample | Ignite UI | Web Components | infragistics</title>
<meta charset="UTF-8" />

<link rel="shortcut icon" href="https://static.infragistics.com/xplatform/images/browsers/wc.png" >
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Kanit&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Titillium Web" />
<link rel="stylesheet" href="https://static.infragistics.com/xplatform/css/samples/shared.v8.css" />
<link rel="stylesheet" href="/src/index.css" type="text/css" />

</head>

<body>
<div id="root">

<div class="container sample">

<div class="container fill">
<igc-data-chart
name="chart"
id="chart"
should-auto-expand-margin-for-initial-labels="true"
computed-plot-area-margin-mode="Series"
is-vertical-zoom-enabled="false"
is-horizontal-zoom-enabled="true"
brushes="green red"
outlines="green red"
plot-area-margin-left="10"
plot-area-margin-top="0"
plot-area-margin-right="20"
plot-area-margin-bottom="0"
left-margin="10"
top-margin="0"
right-margin="20"
bottom-margin="0"
is-window-synced-to-visible-range="false"
chart-title="This Data Chart has multiple Data Annotation Layers bound to data that annotates important events and patterns in stock prices.">
<!-- <igc-category-x-axis
name="xAxisBottom"
id="xAxisBottom"
label="index"
tick-length="0"
label-location="OutsideBottom"
label-text-color="rgba(0, 0, 0, 0)"
label-text-style="normal normal 12px Verdana"
label-extent="140"
label-left-margin="0"
label-top-margin="15"
label-right-margin="0"
label-bottom-margin="15"
label-angle="90">
</igc-category-x-axis> -->
<igc-category-x-axis
name="xAxis"
id="xAxis"
label="date"
label-left-margin="0"
label-top-margin="5"
label-right-margin="0"
label-bottom-margin="5">
</igc-category-x-axis>
<!-- <igc-category-x-axis
name="xAxisTop"
id="xAxisTop"
label="date"
tick-length="0"
label-location="OutsideTop"
label-text-style="normal normal 12px Verdana"
label-extent="40"
label-text-color="rgba(0, 0, 0, 0)"
label-left-margin="8"
label-top-margin="3"
label-right-margin="8"
label-bottom-margin="5">
</igc-category-x-axis> -->
<igc-numeric-y-axis
name="yAxisLeft"
id="yAxisLeft"
label-location="OutsideLeft"
label-text-style="normal normal 12px Verdana"
label-extent="80"
label-horizontal-alignment="Right"
label-left-margin="8"
label-top-margin="3"
label-right-margin="8"
label-bottom-margin="5"
minimum-value="0"
maximum-value="550">
</igc-numeric-y-axis>

<!-- <igc-numeric-y-axis
name="yAxisRight"
id="yAxisRight"
label-location="OutsideRight"
label-text-style="normal normal 12px Verdana"
label-extent="80"
label-horizontal-alignment="Left"
label-left-margin="8"
label-top-margin="3"
label-right-margin="8"
label-bottom-margin="5"
minimum-value="0"
maximum-value="550">
</igc-numeric-y-axis> -->

<igc-financial-price-series
name="series1"
id="series1"
title="Stock Price"
display-type="Candlestick"
open-member-path="open"
high-member-path="high"
low-member-path="low"
close-member-path="close"
show-default-tooltip="false">
</igc-financial-price-series>
<!-- layout-mode="Vertical" -->
<igc-data-tool-tip-layer
name="Tooltip"
id="Tooltip"
included-columns="high, low, open, close"
layout-mode="Vertical">
</igc-data-tool-tip-layer>
<!-- <igc-data-annotation-strip-layer
name="StripLayer"
id="StripLayer"
center-label-member-path="label"
start-value-member-path="start"
end-value-member-path="end"
end-label-display-mode="Hidden"
start-label-display-mode="Hidden"
brush="black"
outline="black"
overlay-text-color="purple"
overlay-text-location="Hidden"
overlay-text-member-path="label">
</igc-data-annotation-strip-layer>
<igc-data-annotation-line-layer
name="LineLayer52WeekRange"
id="LineLayer52WeekRange"
center-label-x-display-mode="Hidden"
start-label-x-display-mode="Hidden"
start-label-y-display-mode="DataValue"
end-label-x-display-mode="Hidden"
end-label-y-display-mode="DataValue"
brush="purple"
outline="purple"
overlay-text-color="purple"
overlay-text-vertical-margin="5"
overlay-text-horizontal-margin="5"
overlay-text-location="OutsideBottomLeft"
overlay-text-member-path="label"
start-label-x-member-path="startLabel"
end-label-x-member-path="endLabel"
start-value-x-member-path="startX"
start-value-y-member-path="startY"
end-value-x-member-path="endX"
end-value-y-member-path="endY">
</igc-data-annotation-line-layer>
<igc-data-annotation-line-layer
name="LineLayerGrowthAndDecline"
id="LineLayerGrowthAndDecline"
center-label-x-display-mode="Hidden"
start-label-x-display-mode="Hidden"
end-label-x-display-mode="Hidden"
annotation-background-mode="BrightnessShift"
brush="purple"
outline="purple"
overlay-text-color="purple"
overlay-text-vertical-margin="-10"
overlay-text-horizontal-margin="70"
overlay-text-member-path="label"
start-label-x-member-path="startLabel"
end-label-x-member-path="endLabel"
start-value-x-member-path="startX"
start-value-y-member-path="startY"
end-value-x-member-path="endX"
end-value-y-member-path="endY">
</igc-data-annotation-line-layer>
<igc-data-annotation-slice-layer
name="SliceLayerStockSplit"
id="SliceLayerStockSplit"
brush="dodgerblue"
annotation-text-color="white"
annotation-label-member-path="label"
annotation-value-member-path="value"
overlay-text-member-path="label"
overlay-text-angle="90"
overlay-text-vertical-margin="20"
overlay-text-horizontal-margin="0"
overlay-text-location="Hidden">
</igc-data-annotation-slice-layer>
<igc-data-annotation-slice-layer
name="SliceLayerEarningsMissAnnotations"
id="SliceLayerEarningsMissAnnotations"
brush="red"
annotation-text-color="white"
annotation-label-member-path="label"
annotation-value-member-path="value"
overlay-text-member-path="label"
overlay-text-angle="90"
overlay-text-vertical-margin="20"
overlay-text-horizontal-margin="0"
overlay-text-location="Hidden">
</igc-data-annotation-slice-layer>
<igc-data-annotation-slice-layer
name="SliceLayerEarningsBeatAnnotations"
id="SliceLayerEarningsBeatAnnotations"
brush="green"
annotation-text-color="white"
annotation-label-member-path="label"
annotation-value-member-path="value"
overlay-text-member-path="label"
overlay-text-angle="90"
overlay-text-vertical-margin="20"
overlay-text-horizontal-margin="0"
overlay-text-location="Hidden">
</igc-data-annotation-slice-layer> -->
</igc-data-chart>
</div>
</div>

</div>

<!-- This script is needed only for parcel and it will be excluded for webpack -->
<% if (false) { %><script src="src/index.ts"></script><% } %>
</body>
</html>
Loading