Skip to content
Merged
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 @@ -31,7 +31,7 @@ class AnotherBarActivity : DemoBase(), OnSeekBarChangeListener {

binding.seekBarX.setOnSeekBarChangeListener(this)
binding.seekBarY.setOnSeekBarChangeListener(this)
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// if more than 60 entries are displayed in the chart, no values will be drawn
binding.chart1.setMaxVisibleValueCount(60)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class BarChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartValueSelect
binding.chart1.setDrawBarShadow(false)
binding.chart1.setDrawValueAboveBar(true)

binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// if more than 60 entries are displayed in the chart, no values will be
// drawn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class BarChartActivityMultiDataset : DemoBase(), OnSeekBarChangeListener, OnChar
binding.seekBarY.setOnSeekBarChangeListener(this)

binding.chart1.setOnChartValueSelectedListener(this)
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// chart.setDrawBorders(true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class BarChartActivitySinus : DemoBase(), OnSeekBarChangeListener {
binding.chart1.setDrawBarShadow(false)
binding.chart1.setDrawValueAboveBar(true)

binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// if more than 60 entries are displayed in the chart, no values will be drawn
binding.chart1.setMaxVisibleValueCount(60)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class BarChartPositiveNegative : DemoBase() {
binding.chart1.setDrawBarShadow(false)
binding.chart1.setDrawValueAboveBar(true)

binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// scaling can now only be done on x- and y-axis separately
binding.chart1.setPinchZoom(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class BubbleChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartValueSel

binding.seekBarX.setOnSeekBarChangeListener(this)
binding.seekBarY.setOnSeekBarChangeListener(this)
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false
binding.chart1.setOnChartValueSelectedListener(this)
binding.chart1.setDrawGridBackground(false)
binding.chart1.setTouchEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class CandleStickChartActivity : DemoBase(), OnSeekBarChangeListener {
binding.seekBarX.setOnSeekBarChangeListener(this)
binding.seekBarY.setOnSeekBarChangeListener(this)
binding.chart1.setBackgroundColor(Color.WHITE)
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// if more than 60 entries are displayed in the chart, no values will be drawn
binding.chart1.setMaxVisibleValueCount(60)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class CombinedChartActivity : DemoBase() {
binding = ActivityCombinedBinding.inflate(layoutInflater)
setContentView(binding.root)

binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false
binding.chart1.setBackgroundColor(Color.WHITE)
binding.chart1.setDrawGridBackground(false)
binding.chart1.setDrawBarShadow(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class CubicLineChartActivity : DemoBase(), OnSeekBarChangeListener {
binding.chart1.setBackgroundColor(Color.rgb(104, 241, 175))

// no description text
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// enable touch gestures
binding.chart1.setTouchEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class DynamicalAddingActivity : DemoBase(), OnChartValueSelectedListener {

binding.chart1.setOnChartValueSelectedListener(this)
binding.chart1.setDrawGridBackground(false)
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false
binding.chart1.setNoDataText("No chart data available. Use the menu to add entries and data sets!")

// chart.getXAxis().setDrawLabels(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class FilledLineActivity : DemoBase() {
binding.chart1.setDrawBorders(true)

// no description text
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// if disabled, scaling can be done on x- and y-axis separately
binding.chart1.setPinchZoom(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class GradientActivity : DemoBase() {
val chart: LineChart = findViewById(R.id.chart)

// Minimal chart setup
chart.description?.isEnabled = false
chart.description.isEnabled = false
chart.legend.isEnabled = false
chart.axisRight.isEnabled = false
chart.setDrawGridBackground(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class HalfPieChartActivity : DemoBase() {
moveOffScreen()

binding.chart1.setUsePercentValues(true)
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

binding.chart1.setCenterTextTypeface(tfLight)
binding.chart1.centerText = generateCenterSpannableText()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class HorizontalBarChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartV

binding.chart1.setDrawValueAboveBar(true)

binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// if more than 60 entries are displayed in the chart, no values will be
// drawn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class HorizontalBarNegativeChartActivity : DemoBase(), OnSeekBarChangeListener,
binding.chart1.setDrawBarShadow(false)
binding.chart1.setDrawValueAboveBar(true)

binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// if more than 60 entries are displayed in the chart, no values will be
// drawn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class InvertedLineChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartVa
binding.chart1.setDrawGridBackground(false)

// no description text
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// enable touch gestures
binding.chart1.setTouchEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class LineChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartValueSelec
binding.chart1.setBackgroundColor(Color.WHITE)

// disable description text
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// enable touch gestures
binding.chart1.setTouchEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class LineChartActivityColored : DemoBase() {
(data.getDataSetByIndex(0) as LineDataSet).circleHoleColor = color

// no description text
chart.description?.isEnabled = false
chart.description.isEnabled = false

// chart.setDrawHorizontalGrid(false);
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class LineChartDualAxisActivity : DemoBase(), OnSeekBarChangeListener, OnChartVa
binding.chart1.setOnChartValueSelectedListener(this)

// no description text
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// enable touch gestures
binding.chart1.setTouchEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class LineChartTimeActivity : DemoBase(), OnSeekBarChangeListener {
binding.seekBarX.setOnSeekBarChangeListener(this)

// no description text
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// enable touch gestures
binding.chart1.setTouchEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class ListViewBarChartActivity : DemoBase() {

data?.setValueTypeface(tfLight)
data?.setValueTextColor(Color.BLACK)
holder.chart?.description?.isEnabled = false
holder.chart!!.description.isEnabled = false
holder.chart?.setDrawGridBackground(false)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class MultiLineChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartGestu
binding.seekBarY.setOnSeekBarChangeListener(this)
binding.chart1.setOnChartValueSelectedListener(this)
binding.chart1.setDrawGridBackground(false)
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false
binding.chart1.setDrawBorders(false)

binding.chart1.axisLeft.isEnabled = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PerformanceLineChart : DemoBase(), OnSeekBarChangeListener {
binding.chart1.setDrawGridBackground(false)

// no description text
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// enable touch gestures
binding.chart1.setTouchEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class PieChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartValueSelect
binding.seekBarY.setOnSeekBarChangeListener(this)

binding.chart1.setUsePercentValues(true)
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false
binding.chart1.setExtraOffsets(5f, 10f, 5f, 5f)

binding.chart1.dragDecelerationFrictionCoef = 0.95f
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class PieChartRoundedActivity : DemoBase(), OnSeekBarChangeListener, OnChartValu
binding.seekBarX.setOnSeekBarChangeListener(this)
binding.seekBarY.setOnSeekBarChangeListener(this)
binding.chart1.setUsePercentValues(true)
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false
binding.chart1.setExtraOffsets(5f, 10f, 5f, 5f)

binding.chart1.dragDecelerationFrictionCoef = 0.95f
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class PiePolylineChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartVal
binding.seekBarY.setOnSeekBarChangeListener(this)

binding.chart1.setUsePercentValues(true)
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false
binding.chart1.setExtraOffsets(5f, 10f, 5f, 5f)

binding.chart1.dragDecelerationFrictionCoef = 0.95f
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class RadarChartActivity : DemoBase() {
setContentView(binding.root)

binding.chart1.setBackgroundColor(Color.rgb(60, 65, 82))
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

binding.chart1.webLineWidth = 1f
binding.chart1.webColor = Color.LTGRAY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class RealtimeLineChartActivity : DemoBase(), OnChartValueSelectedListener {
setContentView(binding.root)

binding.chart1.setOnChartValueSelectedListener(this)
binding.chart1.description?.isEnabled = true
binding.chart1.description.isEnabled = true

// enable touch gestures
binding.chart1.setTouchEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ScatterChartActivity : DemoBase(), OnSeekBarChangeListener, OnChartValueSe

binding.seekBarX.setOnSeekBarChangeListener(this)
binding.seekBarY.setOnSeekBarChangeListener(this)
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false
binding.chart1.setOnChartValueSelectedListener(this)

binding.chart1.setDrawGridBackground(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ScrollViewActivity : DemoBase() {
binding = ActivityScrollviewBinding.inflate(layoutInflater)
setContentView(binding.root)

binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// scaling can now only be done on x- and y-axis separately
binding.chart1.setPinchZoom(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class SpecificPositionsLineChartActivity : DemoBase(), OnSeekBarChangeListener,
binding.chart1.setDrawGridBackground(false)

// no description text
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// enable touch gestures
binding.chart1.setTouchEnabled(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class StackedBarActivity : DemoBase(), OnSeekBarChangeListener, OnChartValueSele

binding.chart1.setOnChartValueSelectedListener(this)

binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// if more than 60 entries are displayed in the chart, no values will be
// drawn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class StackedBarActivityNegative : DemoBase(), OnChartValueSelectedListener {

binding.chart1.setOnChartValueSelectedListener(this)
binding.chart1.setDrawGridBackground(false)
binding.chart1.description?.isEnabled = false
binding.chart1.description.isEnabled = false

// scaling can now only be done on x- and y-axis separately
binding.chart1.setPinchZoom(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class HorizontalBarComposeActivity : DemoBaseCompose() {

chart.setDrawBarShadow(false)
chart.setDrawValueAboveBar(true)
chart.description?.isEnabled = false
chart.description.isEnabled = false
chart.setMaxVisibleValueCount(60)
chart.setPinchZoom(false)
chart.setDrawGridBackground(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class BarChartFrag : SimpleFragment(), OnChartGestureListener {

// create a new chart object
chart = BarChart(requireActivity())
chart!!.description?.isEnabled = false
chart!!.description.isEnabled = false
chart!!.onChartGestureListener = this

val mv = MyMarkerView(activity, R.layout.custom_marker_view)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ComplexityFragment : SimpleFragment() {

chart = v.findViewById(R.id.lineChart1)

chart!!.description?.isEnabled = false
chart!!.description.isEnabled = false

chart!!.setDrawGridBackground(false)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PieChartFrag : SimpleFragment() {
val v = inflater.inflate(R.layout.frag_simple_pie, container, false)

chart = v.findViewById(R.id.pieChart1)
chart!!.description?.isEnabled = false
chart!!.description.isEnabled = false

val tf = Typeface.createFromAsset(requireContext().assets, "OpenSans-Light.ttf")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ScatterChartFrag : SimpleFragment() {
val v = inflater.inflate(R.layout.frag_simple_scatter, container, false)

chart = v.findViewById(R.id.scatterChart1)
chart!!.description?.isEnabled = false
chart!!.description.isEnabled = false

val tf = Typeface.createFromAsset(requireContext().assets, "OpenSans-Light.ttf")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SineCosineFragment : SimpleFragment() {

chart = v.findViewById(R.id.lineChart1)

chart!!.description?.isEnabled = false
chart!!.description.isEnabled = false

chart!!.setDrawGridBackground(false)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class BarChartItem(cd: ChartData<*>, c: Context) : ChartItem(cd) {
}

// apply styling
holder.chart!!.description?.isEnabled = false
holder.chart!!.description.isEnabled = false
holder.chart!!.setDrawGridBackground(false)
holder.chart!!.setDrawBarShadow(false)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class LineChartItem(cd: ChartData<*>, c: Context) : ChartItem(cd) {

// apply styling
// holder.chart.setValueTypeface(mTf);
holder.chart!!.description?.isEnabled = false
holder.chart!!.description.isEnabled = false
holder.chart!!.setDrawGridBackground(false)

val xAxis = holder.chart!!.xAxis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class PieChartItem(cd: ChartData<*>, c: Context) : ChartItem(cd) {
}

// apply styling
holder.chart!!.description?.isEnabled = false
holder.chart!!.description.isEnabled = false
holder.chart!!.holeRadius = 52f
holder.chart!!.transparentCircleRadius = 57f
holder.chart!!.centerText = centerText
Expand Down
Loading
Loading