@akdeniz,
The 500 code would normally indicate an error on the server, not anything with your code. The jsfiddle that you have shared seems to be working fine.
Refer these articles on How to Fix a 500 Internal Server Error, 500 Internal Server Error: What It Is And How To Fix It for more info.
—
Vishwas R
Team CanvasJS