Skip to content

Commit

Permalink
indentation across igr-ts projects (#1223)
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyexeption authored Mar 15, 2024
1 parent c3dabe2 commit ca5a4b9
Show file tree
Hide file tree
Showing 32 changed files with 492 additions and 491 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { render } from '@testing-library/react';
import $(ClassName) from './index';

test('renders $(ClassName) component', () => {
const wrapper = render(<$(ClassName) />);
expect(wrapper).toBeTruthy();
const wrapper = render(<$(ClassName) />);
expect(wrapper).toBeTruthy();
});
Original file line number Diff line number Diff line change
Expand Up @@ -6,51 +6,51 @@ IgrBulletGraphModule.register();


export default function $(ClassName)() {
const title = 'Bullet Graph';
const title = 'Bullet Graph';

return (
<div>
<h1 className={style.title}>{title}</h1>
<div>
Read more on the&nbsp;
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/bulletgraph.html">
official documentation page
</a>
</div>
<div className={style.container}>
<div className={style.graph}>
<IgrBulletGraph
height="80px" width="400px"
minimumValue={0} value={70} interval={10}
maximumValue={100} targetValue={90}
isScaleInverted={false}
scaleBackgroundBrush="DodgerBlue"
scaleBackgroundOutline="DarkViolet"
scaleBackgroundThickness={2}
scaleStartExtent={0.05}
scaleEndExtent={0.95}>
</IgrBulletGraph>
</div>
<div className={style.graph}>
<IgrBulletGraph
value={50}
valueBrush="DodgerBlue"
valueStrokeThickness={1}
valueInnerExtent={0.5}
valueOuterExtent={0.65}
targetValue={80}
targetValueBreadth={10}
targetValueBrush="LimeGreen"
targetValueOutline="LimeGreen"
targetValueStrokeThickness={1}
targetValueInnerExtent={0.3}
targetValueOuterExtent={0.85}
height="80px" width="400px"
minimumValue={0}
maximumValue={100}>
</IgrBulletGraph>
</div>
</div>
</div>
)
return (
<div>
<h1 className={style.title}>{title}</h1>
<div>
Read more on the&nbsp;
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/bulletgraph.html">
official documentation page
</a>
</div>
<div className={style.container}>
<div className={style.graph}>
<IgrBulletGraph
height="80px" width="400px"
minimumValue={0} value={70} interval={10}
maximumValue={100} targetValue={90}
isScaleInverted={false}
scaleBackgroundBrush="DodgerBlue"
scaleBackgroundOutline="DarkViolet"
scaleBackgroundThickness={2}
scaleStartExtent={0.05}
scaleEndExtent={0.95}>
</IgrBulletGraph>
</div>
<div className={style.graph}>
<IgrBulletGraph
value={50}
valueBrush="DodgerBlue"
valueStrokeThickness={1}
valueInnerExtent={0.5}
valueOuterExtent={0.65}
targetValue={80}
targetValueBreadth={10}
targetValueBrush="LimeGreen"
targetValueOutline="LimeGreen"
targetValueStrokeThickness={1}
targetValueInnerExtent={0.3}
targetValueOuterExtent={0.85}
height="80px" width="400px"
minimumValue={0}
maximumValue={100}>
</IgrBulletGraph>
</div>
</div>
</div>
)
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
:local(.container) {
padding-top: 24px;
display: flex;
flex-flow: row;
justify-content: space-around;
padding-top: 24px;
display: flex;
flex-flow: row;
justify-content: space-around;
}
:local(.title) {
color: rgb(0, 153, 255);
color: rgb(0, 153, 255);
}
:local(.graph) {
width: 50%;
width: 50%;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { render } from '@testing-library/react';
import $(ClassName) from './index';

test('renders $(ClassName) component', () => {
const wrapper = render(<$(ClassName) />);
expect(wrapper).toBeTruthy();
const wrapper = render(<$(ClassName) />);
expect(wrapper).toBeTruthy();
});
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,36 @@ import style from './style.module.css';
IgrCategoryChartModule.register();

const data = [
{ 'CountryName': 'China', 'Pop1995': 1216, 'Pop2005': 1297, 'Pop2015': 1361, 'Pop2025': 1394 },
{ 'CountryName': 'India', 'Pop1995': 920, 'Pop2005': 1090, 'Pop2015': 1251, 'Pop2025': 1396 },
{ 'CountryName': 'United States', 'Pop1995': 266, 'Pop2005': 295, 'Pop2015': 322, 'Pop2025': 351 },
{ 'CountryName': 'Indonesia', 'Pop1995': 197, 'Pop2005': 229, 'Pop2015': 256, 'Pop2025': 277 },
{ 'CountryName': 'Brazil', 'Pop1995': 161, 'Pop2005': 186, 'Pop2015': 204, 'Pop2025': 218 }
{ 'CountryName': 'China', 'Pop1995': 1216, 'Pop2005': 1297, 'Pop2015': 1361, 'Pop2025': 1394 },
{ 'CountryName': 'India', 'Pop1995': 920, 'Pop2005': 1090, 'Pop2015': 1251, 'Pop2025': 1396 },
{ 'CountryName': 'United States', 'Pop1995': 266, 'Pop2005': 295, 'Pop2015': 322, 'Pop2025': 351 },
{ 'CountryName': 'Indonesia', 'Pop1995': 197, 'Pop2005': 229, 'Pop2015': 256, 'Pop2025': 277 },
{ 'CountryName': 'Brazil', 'Pop1995': 161, 'Pop2005': 186, 'Pop2015': 204, 'Pop2025': 218 }
];

export default function $(ClassName)() {
const title = 'Category Chart';
const [chartData, setChartData] = useState([]);
const title = 'Category Chart';
const [chartData, setChartData] = useState([]);

useEffect(() => {
setChartData(data);
}, []);
useEffect(() => {
setChartData(data);
}, []);

return (
<div>
<h1 className={style.title}>{title}</h1>
<div>
Read more on the&nbsp;
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/categorychart.html">
official documentation page
</a>
</div>
<div className={style.container}>
<IgrCategoryChart dataSource={chartData}
width="100%"
height="500px">
</IgrCategoryChart>
</div>
</div>
)
return (
<div>
<h1 className={style.title}>{title}</h1>
<div>
Read more on the&nbsp;
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/categorychart.html">
official documentation page
</a>
</div>
<div className={style.container}>
<IgrCategoryChart dataSource={chartData}
width="100%"
height="500px">
</IgrCategoryChart>
</div>
</div>
)
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
:local(.container) {
padding-top: 24px;
display: flex;
flex-flow: row;
justify-content: center;
padding-top: 24px;
display: flex;
flex-flow: row;
justify-content: center;
}
:local(.title) {
color: rgb(0, 153, 255);
color: rgb(0, 153, 255);
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class IgrTsCategoryChartComponent extends BaseComponent {
this.name = "Category Chart";
this.group = "Charts";
this.description = `makes visualizing category data easy. Simplifies the complexities
of the data visualization domain into manageable API`;
of the data visualization domain into manageable API`;
}
}
module.exports = new IgrTsCategoryChartComponent();
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { render } from '@testing-library/react';
import $(ClassName) from './index';

test('renders $(ClassName) component', () => {
const wrapper = render(<$(ClassName) />);
expect(wrapper).toBeTruthy();
const wrapper = render(<$(ClassName) />);
expect(wrapper).toBeTruthy();
});
Original file line number Diff line number Diff line change
Expand Up @@ -14,50 +14,50 @@ IgrRingSeriesModule.register();


const data = [
{ MarketShare: 30, Company: "Google", },
{ MarketShare: 15, Company: "Microsoft", },
{ MarketShare: 30, Company: "Apple", },
{ MarketShare: 15, Company: "Samsung", },
{ MarketShare: 10, Company: "Other", },
{ MarketShare: 30, Company: "Google", },
{ MarketShare: 15, Company: "Microsoft", },
{ MarketShare: 30, Company: "Apple", },
{ MarketShare: 15, Company: "Samsung", },
{ MarketShare: 10, Company: "Other", }
];

export default function $(ClassName)() {
const title = 'Doughnut Chart';
const [chartData, setChartData] = useState([]);
const legendRef = useRef();
const chartRef = useRef();
const title = 'Doughnut Chart';
const [chartData, setChartData] = useState([]);
const legendRef = useRef();
const chartRef = useRef();

useEffect(() => {
setChartData(data);
}, []);
useEffect(() => {
setChartData(data);
}, []);

return (
<div>
<h1 className={style.title}>{title}</h1>
<div>
Read more on the&nbsp;
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/doughnutchart.html">
official documentation page
</a>
</div>
<div className={style.container}>
<div className={style.legend}>
<IgrItemLegend ref={legendRef} />
</div>
<div className={style.chart}>
<IgrDoughnutChart ref={chartRef}
width="300px"
height="300px">
<IgrRingSeries
name="ring1"
dataSource={chartData}
labelMemberPath="Company"
valueMemberPath="MarketShare"
legend={legendRef.current}
/>
</IgrDoughnutChart>
</div>
</div>
</div>
)
return (
<div>
<h1 className={style.title}>{title}</h1>
<div>
Read more on the&nbsp;
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/doughnutchart.html">
official documentation page
</a>
</div>
<div className={style.container}>
<div className={style.legend}>
<IgrItemLegend ref={legendRef} />
</div>
<div className={style.chart}>
<IgrDoughnutChart ref={chartRef}
width="300px"
height="300px">
<IgrRingSeries
name="ring1"
dataSource={chartData}
labelMemberPath="Company"
valueMemberPath="MarketShare"
legend={legendRef.current}
/>
</IgrDoughnutChart>
</div>
</div>
</div>
)
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
:local(.container) {
display: flex;
flex-flow: row;
justify-content: center;
padding-top: 24px;
display: flex;
flex-flow: row;
justify-content: center;
padding-top: 24px;
}
:local(.title) {
color: rgb(0, 153, 255);
color: rgb(0, 153, 255);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { render } from '@testing-library/react';
import $(ClassName) from './index';

test('renders $(ClassName) component', () => {
const wrapper = render(<$(ClassName) />);
expect(wrapper).toBeTruthy();
const wrapper = render(<$(ClassName) />);
expect(wrapper).toBeTruthy();
});
Loading

0 comments on commit ca5a4b9

Please sign in to comment.