Next
Update
Prev

This sample demonstrates a movie rating. Try to insert a new row by clicking the right-mouse button and enter the score value in the new row.

This sample is configured to adjust the icon based on the rating value using itemRenderer, secondLabelJsFunction and labelJsFunction.

function secondLabelFunc(item, value, column) {
  if ( value > 4 ) {
    return "./Images/icons/s5.png"
  } else if ( value > 3 )	{
    return "./Images/icons/s4.png"
  } else if ( value > 2 ) {
    return "./Images/icons/s3.png"
  } else if ( value > 1 )	{
    return "./Images/icons/s2.png"
  } else
    return "./Images/icons/s1.png";
}

© 2017 KoolChart. All rights reserved.