Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

set example codes as dart code #511

Closed
wants to merge 3 commits into from
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of a bar chart with domain selection A11y behavior.
///
/// The OS screen reader (TalkBack / VoiceOver) setting must be turned on, or
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/bar_secondary_axis.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Bar chart example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/bar_secondary_axis_only.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Bar chart example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/custom_axis_tick_formatters.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of timeseries chart with custom measure and domain formatters.
import 'package:charts_flutter/flutter.dart' as charts;
import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/custom_font_size_and_color.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Custom Font Style Example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/custom_measure_tick_count.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of timeseries chart with a custom number of ticks
///
/// The tick count can be set by setting the [desiredMinTickCount] and
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/flipped_vertical_axis.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Bar chart example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/gridline_dash_pattern.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of timeseries chart with gridlines that have a dash pattern.
import 'package:charts_flutter/flutter.dart' as charts;
import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/hidden_ticks_and_labels_axis.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// No Axis Example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/horizontal_bar_secondary_axis.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Bar chart example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/integer_only_measure_axis.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of timeseries chart forcing the measure axis to have whole number
/// ticks. This is useful if the measure units don't make sense to present as
/// fractional.
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/line_disjoint_axis.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of using disjoint measure axes to render 4 series of lines with
/// separate scales. The general use case for this type of chart is to show
/// differences in the trends of the data, without comparing their absolute
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/measure_axis_label_alignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Custom Tick Label Alignment Example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/nonzero_bound_measure_axis.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of timeseries chart that has a measure axis that does NOT include
/// zero. It starts at 100 and goes to 140.
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/numeric_initial_viewport.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of setting an initial viewport for ordinal axis.
///
/// This allows for specifying the specific range of data to show that differs
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/ordinal_initial_viewport.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of setting an initial viewport for ordinal axis.
///
/// This allows for specifying the specific range of data to show that differs
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/short_tick_length_axis.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Custom Tick Style Example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/axes/statically_provided_ticks.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of axis using statically provided ticks.
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/custom_rounded_bars.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Bar chart example
import 'package:charts_flutter/flutter.dart' as charts;
import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/grouped.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Bar chart example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/grouped_fill_color.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Bar chart example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/grouped_stacked.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of a bar chart with grouped, stacked series oriented vertically.
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of a bar chart with grouped, stacked series oriented vertically with
/// a custom weight pattern.
///
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/grouped_target_line.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Bar chart example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/horizontal.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Horizontal bar chart example
import 'package:charts_flutter/flutter.dart' as charts;
import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/horizontal_bar_label.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Horizontal bar chart with bar label renderer example and hidden domain axis.
import 'package:charts_flutter/flutter.dart' as charts;
import 'package:flutter/material.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Horizontal bar chart with custom style for each datum in the bar label.
import 'package:charts_flutter/flutter.dart' as charts;
import 'package:flutter/material.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Forward pattern hatch bar chart example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/pattern_forward_hatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Forward hatch pattern bar chart example.
///
/// The second series of bars is rendered with a pattern by defining a
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Bar chart example
import 'package:charts_flutter/flutter.dart' as charts;
import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/spark_bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Spark Bar Example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/stacked.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Bar chart example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/stacked_fill_color.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Bar chart example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/stacked_horizontal.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Bar chart example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/stacked_target_line.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Bar chart example
import 'package:flutter/material.dart';
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/bar_charts/vertical_bar_label.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Vertical bar chart with bar label renderer example.
import 'package:charts_flutter/flutter.dart' as charts;
import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/behaviors/chart_title.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
import 'dart:math';
// EXCLUDE_FROM_GALLERY_DOCS_END
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/behaviors/initial_hint_animation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of initial hint animation behavior.
///
/// To see the animation, please run the example app and select
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/behaviors/initial_selection.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of adding an initial selection behavior.
///
/// This example adds initial selection to a bar chart, but any chart can use
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/behaviors/percent_of_domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of a percentage bar chart with stacked series oriented vertically.
///
/// Each bar stack shows the percentage of each measure out of the total measure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of a percentage bar chart with grouped, stacked series oriented
/// vertically.
///
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/behaviors/percent_of_series.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Example of a percentage bar chart which shows each bar as the percentage of
/// the total series measure value.
import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/example/behaviors/selection_bar_highlight.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
import 'dart:math';
// EXCLUDE_FROM_GALLERY_DOCS_END
import 'package:charts_flutter/flutter.dart' as charts;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Example:

```
```dart
/// Timeseries chart with example of updating external state based on selection.
///
/// A SelectionModelConfig can be provided for each of the different
Expand Down
Loading