Pull down to refresh...
Release to refresh...
Refreshing...
-
Data Grid
- Overview
-
Data Binding
-
Paging and Scrolling
-
Editing
-
Grouping
-
Filtering and Sorting
- Focused Row
-
Row Drag & Drop
-
Selection
-
Columns
- State Persistence
-
Appearance
-
Templates
-
Data Summaries
-
Master-Detail
-
Export to PDF
-
Export to Excel
-
Adaptability
- Keyboard Navigation
-
Pivot Grid
- Overview
-
Data Binding
-
Field Chooser
-
Features
-
Export to Excel
-
Tree List
- Overview
-
Data Binding
- Sorting
- Paging
-
Editing
- Node Drag & Drop
- Focused Row
-
Selection
-
Filtering
-
Column Customization
- State Persistence
- Adaptability
- Keyboard Navigation
-
Scheduler
- Overview
-
Data Binding
-
Views
-
Features
- Virtual Scrolling
-
Grouping
-
Customization
- Adaptability
-
Html Editor
-
Chat
-
Diagram
- Overview
-
Data Binding
-
Featured Shapes
-
Custom Shapes
-
Document Capabilities
-
User Interaction
- UI Customization
- Adaptability
-
Charts
- Overview
-
Data Binding
-
Area Charts
-
Bar Charts
- Bullet Charts
-
Doughnut Charts
-
Financial Charts
-
Line Charts
-
Pie Charts
-
Point Charts
-
Polar and Radar Charts
-
Range Charts
-
Sparkline Charts
-
Tree Map
-
Funnel and Pyramid Charts
- Sankey Chart
-
Combinations
-
More Features
-
Export
-
Selection
-
Tooltips
-
Zooming
-
-
Gantt
- Overview
-
Data
-
UI Customization
- Strip Lines
- Export to PDF
- Sorting
-
Filtering
-
Gauges
- Overview
-
Data Binding
-
Bar Gauge
-
Circular Gauge
-
Linear Gauge
-
Navigation
- Overview
- Accordion
-
Menu
- Multi View
-
Drawer
-
Tab Panel
-
Tabs
-
Toolbar
- Pagination
-
Tree View
- Right-to-Left Support
-
Layout
-
Editors
- Overview
- Autocomplete
-
Calendar
- Check Box
- Color Box
-
Date Box
-
Date Range Box
-
Drop Down Box
-
Number Box
-
Select Box
- Switch
-
Tag Box
- Text Area
- Text Box
- Validation
- Custom Text Editor Buttons
- Right-to-Left Support
- Editor Appearance Variants
-
Forms and Multi-Purpose
- Overview
- Button Group
- Field Set
-
Filter Builder
-
Form
- Radio Group
-
Range Selector
- Numeric Scale (Lightweight)
- Numeric Scale
- Date-Time Scale (Lightweight)
- Date-Time Scale
- Logarithmic Scale
- Discrete scale
- Custom Formatting
- Use Range Selection for Calculation
- Use Range Selection for Filtering
- Image on Background
- Chart on Background
- Customized Chart on Background
- Chart on Background with Series Template
- Range Slider
- Slider
-
Sortable
-
File Management
-
File Manager
- Overview
-
File System Types
-
Customization
-
File Uploader
-
-
Actions and Lists
- Overview
-
Action Sheet
-
Button
- Floating Action Button
- Drop Down Button
-
Context Menu
-
List
-
Lookup
-
Maps
- Overview
-
Map
-
Vector Map
-
Dialogs and Notifications
-
Localization
Related Demos:
Your search did not match any results.
Loading...
JavaScript/jQuery Charts - Point Image
This demo shows that the Chart can display custom images instead of standard point symbols.
Was this demo helpful?
Feel free to share demo-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Backend API
x
$(() => {
$('#chart').dxChart({
dataSource,
commonSeriesSettings: {
argumentField: 'year',
valueField: 'place',
type: 'spline',
point: {
visible: false,
},
},
export: {
enabled: true,
formats: ['PNG', 'PDF', 'JPEG', 'GIF', 'SVG'],
},
customizePoint() {
if (this.value === 1) {
return { image: { url: 'images/Charts/PointImage/icon-medal-gold.png', width: 20, height: 20 }, visible: true };
}
if (this.value === 2) {
return { image: { url: 'images/Charts/PointImage/icon-medal-silver.png', width: 20, height: 20 }, visible: true };
}
if (this.value === 3) {
return { image: { url: 'images/Charts/PointImage/icon-medal-bronse.png', width: 20, height: 20 }, visible: true };
}
return null;
},
series: {
color: '#888888',
},
title: {
text: 'Canadian Men’s National Ice Hockey Team\n at the World Championships',
},
legend: {
visible: false,
},
argumentAxis: {
grid: {
visible: true,
},
label: {
format: {
type: 'decimal',
},
},
allowDecimals: false,
axisDivisionFactor: 60,
},
valueAxis: {
grid: {
visible: false,
},
inverted: true,
label: {
customizeText() {
if (this.valueText === '1') {
return `${this.valueText}st place`;
} if (this.valueText === '2') {
return `${this.valueText}nd place`;
} if (this.valueText === '3') {
return `${this.valueText}rd place`;
}
return `${this.valueText}th place`;
},
},
},
});
});
xxxxxxxxxx
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>↔</head>
<body class="dx-viewport">
<div class="demo-container">
<div id="chart"></div>
</div>
</body>
</html>
xxxxxxxxxx
#chart {
height: 440px;
}
xxxxxxxxxx
const dataSource = [{
year: 1977,
place: 4,
}, {
year: 1978,
place: 3,
}, {
year: 1979,
place: 4,
}, {
year: 1981,
place: 4,
}, {
year: 1982,
place: 3,
}, {
year: 1983,
place: 3,
}, {
year: 1985,
place: 2,
}, {
year: 1986,
place: 3,
}, {
year: 1987,
place: 4,
}, {
year: 1989,
place: 2,
}, {
year: 1990,
place: 4,
}, {
year: 1991,
place: 2,
}, {
year: 1992,
place: 8,
}, {
year: 1993,
place: 4,
}, {
year: 1994,
place: 1,
}, {
year: 1995,
place: 3,
}, {
year: 1996,
place: 2,
}, {
year: 1997,
place: 1,
}, {
year: 1998,
place: 6,
}, {
year: 1999,
place: 4,
}, {
year: 2000,
place: 4,
}, {
year: 2001,
place: 5,
}, {
year: 2002,
place: 6,
}, {
year: 2003,
place: 1,
}, {
year: 2004,
place: 1,
}, {
year: 2005,
place: 2,
}, {
year: 2006,
place: 4,
}, {
year: 2007,
place: 1,
}, {
year: 2008,
place: 2,
}, {
year: 2009,
place: 2,
}, {
year: 2010,
place: 7,
}, {
year: 2011,
place: 5,
}, {
year: 2012,
place: 5,
}, {
year: 2013,
place: 5,
}];