Skip to content

Commit

Permalink
Add dynamic strings, see #90
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 20, 2024
1 parent 8649b5b commit 7dffb5a
Show file tree
Hide file tree
Showing 11 changed files with 97 additions and 239 deletions.
71 changes: 0 additions & 71 deletions js/LeastSquaresRegressionStrings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,179 +13,108 @@ import leastSquaresRegression from './leastSquaresRegression.js';

type StringsType = {
'least-squares-regression': {
'title': string;
'titleStringProperty': LocalizedStringProperty;
};
'bestFitLine': string;
'bestFitLineStringProperty': LocalizedStringProperty;
'myLine': string;
'myLineStringProperty': LocalizedStringProperty;
'residuals': string;
'residualsStringProperty': LocalizedStringProperty;
'squaredResiduals': string;
'squaredResidualsStringProperty': LocalizedStringProperty;
'sum': string;
'sumStringProperty': LocalizedStringProperty;
'a': string;
'aStringProperty': LocalizedStringProperty;
'b': string;
'bStringProperty': LocalizedStringProperty;
'symbol': {
'x': string;
'xStringProperty': LocalizedStringProperty;
'y': string;
'yStringProperty': LocalizedStringProperty;
'r': string;
'rStringProperty': LocalizedStringProperty;
};
'questionMark': string;
'questionMarkStringProperty': LocalizedStringProperty;
'sourcePattern': string;
'sourcePatternStringProperty': LocalizedStringProperty;
'correlationCoefficient': string;
'correlationCoefficientStringProperty': LocalizedStringProperty;
'custom': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
};
'temperatureFahrenheitLatitude': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
'xAxisTitle': string;
'xAxisTitleStringProperty': LocalizedStringProperty;
'yAxisTitle': string;
'yAxisTitleStringProperty': LocalizedStringProperty;
'reference': string;
'referenceStringProperty': LocalizedStringProperty;
};
'temperatureFahrenheitLongitude': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
'xAxisTitle': string;
'xAxisTitleStringProperty': LocalizedStringProperty;
'yAxisTitle': string;
'yAxisTitleStringProperty': LocalizedStringProperty;
'reference': string;
'referenceStringProperty': LocalizedStringProperty;
};
'temperatureCelsiusLatitude': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
'xAxisTitle': string;
'xAxisTitleStringProperty': LocalizedStringProperty;
'yAxisTitle': string;
'yAxisTitleStringProperty': LocalizedStringProperty;
'reference': string;
'referenceStringProperty': LocalizedStringProperty;
};
'temperatureCelsiusLongitude': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
'xAxisTitle': string;
'xAxisTitleStringProperty': LocalizedStringProperty;
'yAxisTitle': string;
'yAxisTitleStringProperty': LocalizedStringProperty;
'reference': string;
'referenceStringProperty': LocalizedStringProperty;
};
'spendingSalary': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
'xAxisTitle': string;
'xAxisTitleStringProperty': LocalizedStringProperty;
'yAxisTitle': string;
'yAxisTitleStringProperty': LocalizedStringProperty;
'reference': string;
'referenceStringProperty': LocalizedStringProperty;
};
'wageYear': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
'xAxisTitle': string;
'xAxisTitleStringProperty': LocalizedStringProperty;
'yAxisTitle': string;
'yAxisTitleStringProperty': LocalizedStringProperty;
'reference': string;
'referenceStringProperty': LocalizedStringProperty;
};
'mortalityYear': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
'xAxisTitle': string;
'xAxisTitleStringProperty': LocalizedStringProperty;
'yAxisTitle': string;
'yAxisTitleStringProperty': LocalizedStringProperty;
'reference': string;
'referenceStringProperty': LocalizedStringProperty;
};
'userYear': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
'xAxisTitle': string;
'xAxisTitleStringProperty': LocalizedStringProperty;
'yAxisTitle': string;
'yAxisTitleStringProperty': LocalizedStringProperty;
'reference': string;
'referenceStringProperty': LocalizedStringProperty;
};
'gasolineYear': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
'xAxisTitle': string;
'xAxisTitleStringProperty': LocalizedStringProperty;
'yAxisTitle': string;
'yAxisTitleStringProperty': LocalizedStringProperty;
'reference': string;
'referenceStringProperty': LocalizedStringProperty;
};
'lifeTV': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
'xAxisTitle': string;
'xAxisTitleStringProperty': LocalizedStringProperty;
'yAxisTitle': string;
'yAxisTitleStringProperty': LocalizedStringProperty;
'reference': string;
'referenceStringProperty': LocalizedStringProperty;
};
'speedDistance': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
'xAxisTitle': string;
'xAxisTitleStringProperty': LocalizedStringProperty;
'yAxisTitle': string;
'yAxisTitleStringProperty': LocalizedStringProperty;
'reference': string;
'referenceStringProperty': LocalizedStringProperty;
};
'temperatureFahrenheitChirp': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
'xAxisTitle': string;
'xAxisTitleStringProperty': LocalizedStringProperty;
'yAxisTitle': string;
'yAxisTitleStringProperty': LocalizedStringProperty;
'reference': string;
'referenceStringProperty': LocalizedStringProperty;
};
'temperatureCelsiusChirp': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
'xAxisTitle': string;
'xAxisTitleStringProperty': LocalizedStringProperty;
'yAxisTitle': string;
'yAxisTitleStringProperty': LocalizedStringProperty;
'reference': string;
'referenceStringProperty': LocalizedStringProperty;
};
'heightShoe': {
'graphTitle': string;
'graphTitleStringProperty': LocalizedStringProperty;
'xAxisTitle': string;
'xAxisTitleStringProperty': LocalizedStringProperty;
'yAxisTitle': string;
'yAxisTitleStringProperty': LocalizedStringProperty;
'reference': string;
'referenceStringProperty': LocalizedStringProperty;
}
};
Expand Down
Loading

0 comments on commit 7dffb5a

Please sign in to comment.